Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
ShowItemText Property
See Also  Example
Leadtools.WinForms Namespace > RasterImageList Class : ShowItemText Property




Indicates whether the item text is shown in the control.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Indicates whether to display item text.")>
<CategoryAttribute("Appearance")>
Public Property ShowItemText As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim value As Boolean
 
instance.ShowItemText = value
 
value = instance.ShowItemText
C# 
[DescriptionAttribute("Indicates whether to display item text.")]
[CategoryAttribute("Appearance")]
public bool ShowItemText {get; set;}
Managed Extensions for C++ 
[DescriptionAttribute("Indicates whether to display item text.")]
[CategoryAttribute("Appearance")]
public: __property bool get_ShowItemText();
public: __property void set_ShowItemText( 
   bool value
);
C++/CLI 
[DescriptionAttribute("Indicates whether to display item text.")]
[CategoryAttribute("Appearance")]
public:
property bool ShowItemText {
   bool get();
   void set (bool value);
}

Return Value

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

Example

Visual BasicCopy Code
''' This example will display a <see cref="RasterImageList"/> control with the item text and then without the text.
Public Sub RasterImageList_ShowItemText(ByVal imageList As RasterImageList)
   ' Show the item text
   imageList.ShowItemText = True
   MessageBox.Show("Item text is visible")
   ' Hide the item text
   imageList.ShowItemText = False
   MessageBox.Show("Item text is not visible")

   ' Show the item text again
   imageList.ShowItemText = True
   MessageBox.Show("Item text is visible again")
End Sub
C#Copy Code
/// This example will show a <see cref="RasterImageList"/> control with the item text and then without the text. 
public void RasterImageList_ShowItemText(RasterImageList imageList) 

   // Show the item text 
   imageList.ShowItemText = true; 
   MessageBox.Show("Item text is visible"); 
   // Hide the item text 
   imageList.ShowItemText = false; 
   MessageBox.Show("Item text is not visible"); 
 
   // Show the item text again 
   imageList.ShowItemText = true; 
   MessageBox.Show("Item text is visible again"); 
}

Remarks

When the value of the ShowItemText property is set to true, the item RasterImageListItem.Text value is shown in the item.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also