Paragraphs Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets a collection of all paragraphs contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type ParagraphCollection.
Syntax
public ParagraphCollection Paragraphs { get; }Public ReadOnly Property Paragraphs As ParagraphCollectionExamples
The following example iterates through the paragraphs collection and processes each paragraph.
foreach (Paragraph paragraph in textControl.Paragraphs)
{
Console.WriteLine(paragraph.FormattingStyle);
}For Each paragraph As Paragraph In textControl.Paragraphs
Console.WriteLine(paragraph.FormattingStyle)
NextLimitations
Read only.