TextPart Class
- Namespace
TXTextControl.Web
- Package
TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb
- Assembly
TXTextControl.Web. DocumentEditor. dll
- Install
dotnet add package TXTextControl.Web
- Derived
- Header
Footer , MainText , TextFrame
- Implements
- IFormatted
Text
Description
The Web.TextPart class implements the Web.IFormattedText interface as well as public properties and internal functionality common to all text parts in a TX Text Control document. The following classes inherit from this class: Web.MainText, Web.HeaderFooter and Web.TextFrame.
Syntax
public class TextPart : IFormattedTextPublic Class TextPart
Implements IFormattedTextExamples
The following example inspects a Text Part object supplied by the document workflow.
var currentValue = textPart.Selection;
Console.WriteLine($"Selection: {currentValue}");Dim currentValue = textPart.Selection
Console.WriteLine($"Selection: {currentValue}")Members
Properties
| Property | Description |
|---|---|
| Selection | Gets 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. |