←Select platform

Text Property

Summary

Text string associated with this item.

Syntax
C#
C++
public string Text { get; set; } 
vb[VB Syntax] 
Public Property Text() As String 
   Get 
   Set 
public:  
   property String^ Text 
   { 
      String^ get() 
      void set(String^ value) 
   } 

Property Value

The text string associated with this item. Default value is null.

Remarks

Text can be used to show a page number or file name or any other text data. Refer to Image Viewer Appearance for more information on how this text is rendered.

For more information, refer Image Viewer Items.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
for (int i = 0; i < _imageViewer.Items.Count; i++) 
{ 
   ImageViewerItem item = _imageViewer.Items[i]; 
   string text = item.Text; 
   if (string.IsNullOrEmpty(text)) 
      text = "Page " + (i + 1).ToString(); 
} 
Requirements

Target Platforms

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

Leadtools.Controls Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.