public void GetPositionByIndexEx()
{
//ExStart
//ExFor:TabStopCollection.GetPositionByIndex
//ExSummary:Shows how to find a tab stop by it's index and get its position.
Document doc = new Document(MyDir + "Document.doc");
Paragraph paragraph = (Paragraph)doc.GetChild(NodeType.Paragraph, 0, true);
paragraph.ParagraphFormat.TabStops.Add(ConvertUtil.MillimeterToPoint(30), TabAlignment.Left, TabLeader.Dashes);
paragraph.ParagraphFormat.TabStops.Add(ConvertUtil.MillimeterToPoint(60), TabAlignment.Left, TabLeader.Dashes);
Console.WriteLine("Tab stop at index {0} of the first paragraph is at {1} points.", 1, paragraph.ParagraphFormat.TabStops.GetPositionByIndex(1));
//ExEnd
}