ParStrCommand Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPParInterface

Declaration

function ParStrCommand(ComID: Integer; param: Integer; const StrParam: WideString): Integer;

Description

The following command IDs are currently used:

 

1: Convert a font name into a font index, use it with the code WPAT.CharFont and method ParASet. (Better use convert utility)

 

2: Convert a string into a number, use it with the code WPAT_NumberTEXTB and WPAT_NumberTEXTA. (Better use convert utility)

 

3: Convert a color string into a number, use it with the code WPAT_CharColor. (Better use convert utility)

 

4: Assigns the name of this paragraph

 

5: Assigns the "cell name" to the parent cell of this paragraph. Returns -1 if not in a table. (same as property CellName)

 

6: Assigns the "cell command" to the parent cell of this paragraph. Returns -1 if not in a table.

 

7: Assigns the name to the parent table of this paragraph. Returns -1 if not in a table. The table name can be used in MoveToTable.

 

8: Assigns a name to this paragraph.

 

 

Also see: IWPTextCursor.GetParName and SetParName.

Category

Attribute IDs


[idh_iwpparinterface_parstrcommand.htm]    Copyright © 2007 by WPCubed GmbH