Visual Basic (Declaration) | |
---|---|
<DescriptionAttribute("Indicates whether to display item text.")> <CategoryAttribute("Appearance")> Public Property ShowText As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ImageListItem Dim value As Boolean instance.ShowText = value value = instance.ShowText |
C# | |
---|---|
[DescriptionAttribute("Indicates whether to display item text.")] [CategoryAttribute("Appearance")] public bool ShowText {get; set;} |
C++/CLI | |
---|---|
[DescriptionAttribute("Indicates whether to display item text.")] [CategoryAttribute("Appearance")] public: property bool ShowText { bool get(); void set ( bool value); } |
Property Value
true to draw the item text, otherwise; false. Default value is true.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.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family