LEADTOOLS Windows Forms (Leadtools.WinForms assembly)

ShowItemText Property (RasterImageList)

Show in webframe
Example 





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

            

            
[DescriptionAttribute("Indicates whether to display item text.")]
[CategoryAttribute("Appearance")]
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
Copy Code  
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Drawing

''' 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
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Drawing;

/// 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

See Also

Reference

RasterImageList Class
RasterImageList Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.