Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a page from the collection. In C# this property is the indexer for the PageCollection class.
Syntax
public Page this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As PageExamples
The following example works with the laid-out pages of a short report by using PageCollection.Item.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
PageCollection pageCollection = textControl.GetPages();
Console.WriteLine($"Item: {pageCollection[10]}");
Console.WriteLine("Page Collection is ready for use.");textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim pageCollection As PageCollection = textControl.GetPages()
Console.WriteLine($"Item: {pageCollection.Item(10)}")
Console.WriteLine("Page Collection is ready for use.")Limitations
Read only.