TextChar Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
Description
An instance of the TextChar class represents a single character in a Text Control document.
Syntax
public class TextCharPublic Class TextCharExamples
The following example examines the first text char in a short document.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
TextChar textChar = textControl.TextChars[1];textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim textChar As TextChar = textControl.TextChars(1)Members
Properties
| Property | Description |
|---|---|
| Bounds | Gets the bounding rectangle of the character. The values are given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property. |
| Char | Gets the value of the character. |
| Number | Gets the character's number. The first character has the number 1. |