←Select platform

ShowText Property

Summary

Gets or sets a value that indicate whether to show the items text.

Syntax

C#
VB
C++
public bool ShowText { get; set; } 
Public Property ShowText As Boolean 
public: 
property bool ShowText { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true to show the items text, otherwise; false. Default value is true.

Remarks

Changing this property will make this control loop through all the items and setting the ImageListItem.ShowText accordingly.

Example

C#
VB
Silverlight C#
Silverlight VB
using Leadtools.Help; 
using Leadtools.Windows.Controls; 
using Leadtools; 
using Leadtools.Codecs; 
 
/// This example will show a <see cref="ImageList"/> control with the item text and then without the text. 
public void ImageList_ShowText(ImageList imageList) 
{ 
   // Show the item text 
   imageList.ShowText = true; 
   MessageBox.Show("Item text is visible"); 
 
   // Hide the item text 
   imageList.ShowText = false; 
   MessageBox.Show("Item text is not visible"); 
 
   // Show the item text again 
   imageList.ShowText = true; 
   MessageBox.Show("Item text is visible again"); 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Codecs 
Imports Leadtools 
 
''' This example will show a <see cref="ImageList"/> control with the item text and then without the text. 
Public Sub ImageList_ShowText(ByVal imageList As ImageList) 
   ' Show the item text 
   imageList.ShowText = True 
   MessageBox.Show("Item text is visible") 
 
   ' Hide the item text 
   imageList.ShowText = False 
   MessageBox.Show("Item text is not visible") 
 
   ' Show the item text again 
   imageList.ShowText = True 
   MessageBox.Show("Item text is visible again") 
End Sub 
using Leadtools.Help; 
using Leadtools.Windows.Controls; 
 
/// This example will show a <see cref="ImageList"/> control with the item text and then without the text. 
public void ImageList_ShowText(ImageList imageList) 
{ 
   // Show the item text 
   imageList.ShowText = true; 
   MessageBox.Show("Item text is visible"); 
 
   // Hide the item text 
   imageList.ShowText = false; 
   MessageBox.Show("Item text is not visible"); 
 
   // Show the item text again 
   imageList.ShowText = true; 
   MessageBox.Show("Item text is visible again"); 
} 
Imports Leadtools.Windows.Controls 
 
''' This example will show a <see cref="ImageList"/> control with the item text and then without the text. 
Public Sub ImageList_ShowText(ByVal imageList As ImageList) 
   ' Show the item text 
   imageList.ShowText = True 
   MessageBox.Show("Item text is visible") 
 
   ' Hide the item text 
   imageList.ShowText = False 
   MessageBox.Show("Item text is not visible") 
 
   ' Show the item text again 
   imageList.ShowText = True 
   MessageBox.Show("Item text is visible again") 
End Sub 

Requirements

Target Platforms

See Also

Reference

ImageList Class

ImageList Members

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