C# Winform标签旋转属性?
我想使用属性将标签旋转90度C# Winform标签旋转属性?,c#,winforms,C#,Winforms,我想使用属性将标签旋转90度 this.lblVoltage6.AutoSize = true; this.lblVoltage6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); this.lblVoltage6.Location = new S
this.lblVoltage6.AutoSize = true;
this.lblVoltage6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold);
this.lblVoltage6.Location = new System.Drawing.Point(52, 61);
this.lblVoltage6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblVoltage6.Name = "lblVoltage6";
this.lblVoltage6.Size = new System.Drawing.Size(11, 13);
this.lblVoltage6.TabIndex = 101;
this.lblVoltage6.Text = "-";
不幸的是,不能在WinForms标签中旋转文本。 如果你真的想这样做,你必须处理
Paint
事件并编写代码来旋转文本。不能使用属性(当然,你可以-但是你必须使用道具来创建一个自定义控件来控制旋转,请参见-?)?