TX Text Control .NET Server

Item Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets a paragraph from the collection. In C# this property is the indexer for the ParagraphCollection class.

Syntax

public Paragraph this[int number] { get; }

Examples

The following example works with paragraphs in the current document by using ParagraphCollection.Item.

ParagraphCollection paragraphCollection = textControl.Paragraphs;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";

Console.WriteLine($"Item: {paragraphCollection[10]}");
Console.WriteLine("Paragraph Collection is ready for use.");

Limitations

Read only.