TEXT Attribute | Text Property

Sets or retrieves a value that indicates the text or caption for the object.

Syntax

Visual Basic  Public  Property Text As string
C# public  string Text { get; set; }
Managed C++ public:  __property string get_Text();
public:  __property void set_Text(string);
JScript public   function get Text() : string;
public   function set Text(string);

Possible Values

sText string that specifies or receives the text or caption for the object.

The property is read/write. The property has no default value.

Remarks

The value of this property overrides any text between the opening and closing element tags.

When this property is set on TreeNode, you can supply text marked up with HTML. For example, you can make text bold by setting the property to a string like this — "<B>My Node Text</B>", which renders as My Node Text.

Applies To

TabItem, TOOLBARLABEL

See Also

Internet Explorer WebControls, About the TabStrip WebControl, About the Toolbar WebControl, About the TreeView WebControl