Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Default Public ReadOnly Property Item(number As Integer) As ParagraphExamples
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.");Dim paragraphCollection As ParagraphCollection = textControl.Paragraphs
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Console.WriteLine($"Item: {paragraphCollection.Item(10)}")
Console.WriteLine("Paragraph Collection is ready for use.")Limitations
Read only.