File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
QA Tests/AW Tests/Examples/Tab Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -70,5 +70,21 @@ public void RemoveByIndexEx()
70
70
doc . Save ( ExDir + "Document.RemovedTabStopsByIndex Out.doc" ) ;
71
71
//ExEnd
72
72
}
73
+
74
+ [ Test ]
75
+ public void GetPositionByIndexEx ( )
76
+ {
77
+ //ExStart
78
+ //ExFor:TabStopCollection.GetPositionByIndex
79
+ //ExSummary:Shows how to find a tab by it's index and get its position.
80
+ Aspose . Words . Document doc = new Aspose . Words . Document ( ExDir + "Document.doc" ) ;
81
+ Aspose . Words . Paragraph paragraph = ( Aspose . Words . Paragraph ) doc . GetChild ( Aspose . Words . NodeType . Paragraph , 0 , true ) ;
82
+
83
+ paragraph . ParagraphFormat . TabStops . Add ( 85 , Aspose . Words . TabAlignment . Left , Aspose . Words . TabLeader . Dashes ) ;
84
+ paragraph . ParagraphFormat . TabStops . Add ( 170 , Aspose . Words . TabAlignment . Left , Aspose . Words . TabLeader . Dashes ) ;
85
+
86
+ Console . WriteLine ( paragraph . ParagraphFormat . TabStops . GetPositionByIndex ( 1 ) ) ; // 170
87
+ //ExEnd
88
+ }
73
89
}
74
90
}
You can’t perform that action at this time.
0 commit comments