Paragraphs Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of all paragraphs the text in the text part consists of. The property value is an object of the type ParagraphCollection.
Syntax
ParagraphCollection Paragraphs { get; }ReadOnly Property Paragraphs As ParagraphCollectionExamples
The following example applies bold formatting through the iformatted text's selection by using IFormattedText.Paragraphs.
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;
foreach (Paragraph paragraph in iFormattedText.Paragraphs)
{
Console.WriteLine(paragraph.FormattingStyle);
}Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection
For Each paragraph As Paragraph In iFormattedText.Paragraphs
Console.WriteLine(paragraph.FormattingStyle)
NextLimitations
Read only.