Sets the position of the character block with respect to the baseline of the shape's text.
Applies to: Shape object
object.SetCharPos ( iFrom, iTo, Pos ) |
The SetCharPos method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Shape object. |
iFrom | Required. An expression that returns a Long value. The index of the first character in the character block. |
iTo | Required. An expression that returns a Long value. The index of the last character in the character block. |
Pos | Required. An expression that returns a Byte value. The text position. |
Note, that if the character block collection of the shape doesn't include the character block within the iFrom to iTo range, the SetCharPos method adds a new character block and sets the specified position to it.
Below is the list of possible values of the Pos parameter:
Constant | Value | Description |
cdPosNormal | 0 | Normal size and position of the text. |
cdPosSuper | 1 | Superscript. |
cdPosSub | 2 | Subscript. |