TX Text Control .NET for Windows Forms

TextPosition Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Read only. Gets the frame's character position in the document's text (one-based).

Syntax

public int TextPosition { get; }

Examples

The following example adds a callout frame and works with it through the common frame API by using FrameBase.TextPosition.

TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

Console.WriteLine($"Text Position: {frameBase.TextPosition}");
Console.WriteLine("Frame Base is ready for use.");

Limitations

Read only.