←Select platform

Text Property

Summary

Gets or sets the text of the item.

Syntax

C#
VB
C++
public string Text { get; set; } 
  
Property Text As String 
property String^ Text { 
   String^ get(); 
   void set (    String^ ); 
} 

Property Value

The text to display for the item.

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.

Example

For C#/VB examples, refer to IImageListItem.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Controls Assembly