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 > IImageListItem Interface : Text Property



Gets or sets the text of the item. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

The text to display for the item.

Example

For C#/VB examples, refer to IImageListItem.

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 using the ImageList.Sort method.

The text will be drawn under the image using the brush set in the Foreground property. You must ensure that the area defined by Width and Height is large enough to hold both the image size defined in ImageSize and the item text.

Requirements

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

See Also