TextFrames Property
- Namespace
TXTextControl
- Inherited from
- TextPartBase
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets a collection of all text frames contained in the main text of the document. The property value is an object of the type TextFrameCollection.
Syntax
public TextFrameCollection TextFrames { get; }Public ReadOnly Property TextFrames As TextFrameCollectionExamples
The following example applies bold formatting through the main text's selection by using MainText.TextFrames.
Selection formattedSelection = mainText.Selection;
formattedSelection.Bold = true;
mainText.Selection = formattedSelection;
foreach (TextFrame textFrame in mainText.TextFrames)
{
textFrame.DescriptiveText = "Quarterly results";
}Dim formattedSelection As Selection = mainText.Selection
formattedSelection.Bold = True
mainText.Selection = formattedSelection
For Each textFrame As TextFrame In mainText.TextFrames
textFrame.DescriptiveText = "Quarterly results"
NextLimitations
Read only.