We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Setup tab stops in a document

Below is a copy of the Word call which sets up a tab stop at 1 inch with left alignment.

gappME is the Word object
gdocME is the document object.

gdocME.Paragraphs.TabStops.Add(gappME.InchesToPoints(1), gappME.WdTabAlignment.wdAlignTabLeft, gappME.WdTabLeader.wdTabLeaderSpaces);

How do I do this using DocIo?

1 Reply

AD Administrator Syncfusion Team March 23, 2007 11:32 AM UTC

Hi Jay,

Sets up a Setup tab stops in a document can be done by using the code snippet below

//Tab setting
paragraph.ParagraphFormat.Tabs.AddTab(100.0f,Syncfusion.DLS.TabJustification.Left,Syncfusion.DLS.TabLeader.NoLeader);

The measurement scale for the documents is defined in terms of points.

Herewith I have attached a sample for your reference
http://websamples.syncfusion.com//samples/DocIO.Windows/F58301//main.htm

Please let me know if you have any other queries.

Thanks for your interest in Syncfusion products.

Best Regards,
Bhuvaneswari

Loader.
Live Chat Icon For mobile
Up arrow icon