TerGetTabStop
Return the parameters for a tab stop and the number of tab stop for a line.
int TerGetTabStop( LineNo, TabNo)
int TerGetTabStop2( type, LineNo, TabNo)
int type; | This argument specifies the meaning of the 'LineNo' argument: |
| PID_LINE: | The 'LineNo' parameter specifies the text line number. |
| PID_PARA: | The 'LineNo' parameter specifies the paragraph id. |
| PID_TAB: | The 'L:ineNo' parameter specifies the tab id. |
int LineNo; | Line number (or paragraph or tab id) to get the tab parameters for. Set to -1 to get the tab stop parameters for the current line. |
int TabNo; | Tab number to inquire. To simply get the tab count for the line, set the TabNo parameter to -1. |
Upon a successful return from this method, the TerGetOutInt method can be used to retrieve the temporarily saved values for these variables:
int pPos; | The variable to receive the tab position (in twips). Example: int pos=tej.TerGetOutInt("TabPos"); |
int pType; | The variable to receive the tab type. Example: int type=tej.TerGetOutInt("TabType");Here are the tab-type constants: |
| TAB_LEFT: | Left aligned tab |
| TAB_RIGHT: | Right aligned tab |
| TAB_CENTER: | Center aligned tab |
| TAB_DECIMAL: | Decimal aligned tab |
int pFlag; | The variable to receive the tab flag. Example: int flags=tej.TerGetOutInt("TabFlags");Here are the tab-flags constants: |
| TAB_DOT: | Dot leader |
| TAB_HYPH: | Hyphen leader |
| TAB_ULINE: | Underline leader |
Return Value: This function returns the number of tab stops for the line.