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





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;}
C++/CLI 
public:
property bool ShowText {
   bool get();
   void set (bool value);
}
XAML Attributes Usage 

<object ShowText=bool/>

Dependencies Property Information 

Identifier field

ShowTextProperty

Metadata properties set to true

None

XAML Attributes Usage 

<object ShowText=bool/>

Dependencies 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

For XAML example, refer to ScrollStyle.

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