Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
ShowText Property
See Also  Example
Leadtools.Windows.Controls Namespace > ImageList Class : ShowText Property





This member is available in the WPF Express Edition. See the LEADTOOLS products page for full details on more WPF features available with LEADTOOLS toolkits.

Indicates whether the item text is shown in the control. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property ShowText As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Boolean
 
instance.ShowText = value
 
value = instance.ShowText
C# 
public bool ShowText {get; set;}
Managed Extensions for C++ 
public: __property bool get_ShowText();
public: __property void set_ShowText( 
   bool value
);
C++/CLI 
public:
property bool ShowText {
   bool get();
   void set (bool value);
}
XAML Attributes Usage 

<object ShowText=bool/>

Dependency Property Information 

Identifier field

ShowTextProperty

Metadata properties set to true

None

Return Value

true if the item text is shown in the control; otherwise, false. Default is true

Example

Visual BasicCopy Code
''' 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
C#Copy Code
/// 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"); 
}

Remarks

When the value of the ShowText property is set to true, the item ImageListItem.Text value is shown in the item.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also