ShowItemText Property

Summary

Indicates whether the item text is shown in the control.

Syntax

C#
C++/CLI
C++
public bool ShowItemText { get; set; } 
public: 
property bool ShowItemText { 
   bool get(); 
   void set (    bool ); 
} 
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

C#
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

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.