←Select platform

ShowText Property (ImageListItem)

Summary

Gets or sets a value that determines whether the text item should be drawn. This is a dependency property.

Syntax

C#
VB
C++
[CategoryAttribute("Appearance")] 
[DescriptionAttribute("Indicates whether to display item text.")] 
public bool ShowText {get; set;} 
<CategoryAttribute("Appearance")> 
<DescriptionAttribute("Indicates whether to display item text.")> 
Public Property ShowText As Boolean 
[CategoryAttribute("Appearance")] 
[DescriptionAttribute("Indicates whether to display item text.")] 
public: 
property bool ShowText { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true to draw the item text, otherwise; false. Default value is true.

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.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Windows.Controls Assembly
Click or drag to resize