Spread Windows Forms 11.0 Product Documentation
Text Property (ElementControl)


FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : Text Property
Gets or sets the contents of the control as a string matching exactly what is displayed.
Syntax
'Declaration
 
Public Overrides Property Text As String
'Usage
 
Dim instance As ElementControl
Dim value As String
 
instance.Text = value
 
value = instance.Text
public override string Text {get; set;}

Property Value

String containing the text
Remarks

The Text property returns the value as it is displayed in the control as a string. For example, if the value is displayed with formatting characters such as a thousands separator or dollar sign, the value of the Text property includes these characters and symbols.

Note: For the controls derived from the SuperEditBase class, to return a value without formatting characters, use the Value property.

Specify the orientation of text by setting the TextOrientation property, as applicable. Specify whether text can wrap onto multiple lines by setting the TextWrap property, as applicable.

See Also

Reference

ElementControl Class
ElementControl Members
TextOrientation Property
TextWrap Property
Value Property
SuperEditBase Class