Can a Label or TextArea be underlined?
Underlining
Re: Underlining
Support · Dec 8, 2005Hello,
Yes, both Label and TextArea objects have an Underline property which can be set to true in order to underline the text inside the Label or TextArea.
Thanks,
ceTe Software Support Team
Re: Underlining
Forum member · Dec 8, 2005I'm not finding that in the documentation. Do you have a link or an example?
Re: Underlining
Support · Dec 8, 2005Hello,
Here is the example code snippet:
C# Code:
Label label = new Label( "Hello", 0, 0, 512, 14, Font.Helvetica, 14, TextAlign.Center, Color.DarkBlue );
// Setting the Underline property
label.Underline = true;
VB.NET Code:
Dim MyLabel As Label = New Label("Hello", 0, 0, 512, 14, Font.Helvetica, 14, TextAlign.Center, Color.DarkBlue)
' Setting the Underline property
MyLabel.Underline = True
Thanks,
ceTe Software Support Team
Re: Underlining
Forum member · Dec 8, 2005How about if I use Elements.Add or is it only valid with DIM?
CurrentPage.Elements.Add(New Label("Revision", 0, CurrentY, 50, 11, Font.TimesRoman, 11, TextAlign.Left))
Thanks
Re: Underlining
Support · Dec 8, 2005Hello,
Yes, you have to DIM the page elements in order to change their properties and then add the page element to your page.
VB.NET Code:
Dim MyLabel As Label = New Label("Hello", 0, 0, 512, 14, Font.Helvetica, 14, TextAlign.Center, Color.DarkBlue)
' Setting the Underline property
MyLabel.Underline = True
CurrentPage.Elements.Add(MyLabel)
Thanks,
ceTe Software Support team