Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Disable Center and Middle
posted

I develop a program with NetAdvantage for Windows Forms 2012 Vol 1 and Visual Studio 2010

Infragistics.Win.Misc.UltraLabel

Appearance3.TextHAlignAsString = "Center"

Appearance3.TextVAlignAsString = "Middle"

  

Infragistics.Win.Misc.UltraButton

Appearance1.TextHAlignAsString = "Center"

Appearance1.TextVAlignAsString = "Middle"

 

but can't set the text for this Middle .

PS: china font

        Appearance2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer))         Appearance2.ForeColor = System.Drawing.Color.Blue         Appearance2.TextHAlignAsString = "Center"         Appearance2.TextVAlignAsString = "Middle"         Me.UltraLabel1.Appearance = Appearance2         Me.UltraLabel1.BorderStyleInner = Infragistics.Win.UIElementBorderStyle.Inset         Me.UltraLabel1.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.Inset         Me.UltraLabel1.Font = New System.Drawing.Font("黑体", 35.0!, System.Drawing.FontStyle.Bold)         Me.UltraLabel1.Location = New System.Drawing.Point(49, 155)         Me.UltraLabel1.Name = "UltraLabel1"         Me.UltraLabel1.Size = New System.Drawing.Size(381, 54)         Me.UltraLabel1.TabIndex = 175         Me.UltraLabel1.Text = "品种选择"