InputTabstop Method |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration procedure InputTabstop(ClearAllTabs: WordBool; Value: Integer; Kind: Integer; FillMode: Integer); Description
This method creates a tab-stop and also inserts the tab character. It can optionally clear the existing tabstops. If you only want to define a tab-stop but do not need to insert the tab character use the method CurrPar.TabAdd.
This VB.NET example code inserts page numbering objects aligned at the right margin of the page. You can use it to add page numbers in a header or footer texts.
Dim Memo As IWPEditor Memo = WpdllInt1.Memo Dim TextCursor As IWPTextCursor TextCursor = Memo.TextCursor
TextCursor.InputText(" Page ") TextCursor.InputTabstop(False, _ Memo.PageSize.PageWidth - Memo.PageSize.LeftMargin - Memo.PageSize.RightMargin, _ 1, 1) TextCursor.InputObject(TextObjTypes.wpobjTextObject, "PAGE", "", 0) TextCursor.InputText(" of ") TextCursor.InputObject(TextObjTypes.wpobjTextObject, "NUMPAGES", "", 0) |