LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Text Property
See Also 
Leadtools.Windows.Controls Namespace > ImageListItem Class : Text Property



Gets or sets the text of the item. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property Text As String
Visual Basic (Usage)Copy Code
Dim instance As ImageListItem
Dim value As String
 
instance.Text = value
 
value = instance.Text
C# 
public string Text {get; set;}
C++/CLI 
public:
property String^ Text {
   String^ get();
   void set (    String^ value);
}

Property Value

The text to display for the item. Default value is null (Nothing in Visual Basic).

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Remarks

The Text property allows the text displayed for the item to be changed. This property is also used as the default parameter for sorting. You can use the Text property to show the file name of the image or page number.

Use the Foreground property to set the brush used to draw the item text.

Use the ImageListItem.ShowText dependency property to enable/disable showing the items text in the control.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also