←Select platform

Text Property

Summary

Text string associated with this item.

Syntax
C#
C++/CLI
public string Text { 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; 
using Leadtools.Svg; 
 
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.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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