TX Text Control .NET Server

TextFrame Class

Class|Introduced in 22.0
Namespace
TXTextControl.Web
Package
TXTextControl.Web from nuget.org, the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Web.DocumentEditor.dll
Install
dotnet add package TXTextControl.Web
Inherits
  1. TextPart
  2. TextFrame
Implements
IFormattedText

Description

An instance of the Web.TextFrame class represents a text frame in a Text Control document. A text frame is a rectangle that can be filled with text by an end-user and can be edited like the main text. The Web.TextFrame class inherits from the Web.TextPart class.

Syntax

public class TextFrame : TextPart

Examples

The following example inspects a Text Frame object supplied by the document workflow.

var currentValue = textFrame.Selection;
Console.WriteLine($"Selection: {currentValue}");

Members

Properties

PropertyDescription
SelectionGets or sets the current selection in a text part. The property value is an object of the type Web.Selection. For more information see the description of the Web.Selection class. (Inherited from TextPart.)