LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

ShowItemText Property (RasterImageList)

Example 





Indicates whether the item text is shown in the control.
Syntax
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Indicates whether to display item text.")]
public bool ShowItemText {get; set;}
'Declaration
 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("Indicates whether to display item text.")>
Public Property ShowItemText As Boolean
'Usage
 
Dim instance As RasterImageList
Dim value As Boolean
 
instance.ShowItemText = value
 
value = instance.ShowItemText
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Indicates whether to display item text.")]
public bool ShowItemText {get; set;}
CategoryAttribute("Appearance")
DescriptionAttribute("Indicates whether to display item text.")
 get_ShowItemText();
set_ShowItemText(value);
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Indicates whether to display item text.")]
public:
property bool ShowItemText {
   bool get();
   void set (    bool value);
}

Property Value

true if the item text is shown in the control; otherwise, false. Default is true
Remarks
When the value of the ShowItemText property is set to true, the item RasterImageListItem.Text value is shown in the item.
Example
 
''' 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
/// 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");
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageList Class
RasterImageList Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.