SetCharPos Method

Sets the position of the character block with respect to the baseline of the shape's text.

Applies to: Shape object

Syntax

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.

Remarks

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.

 

See Also

Pos property (Character object), Character method, CharactersNum method, GetCharacterIndex method, RemoveCharacter method, SetCharColor method, SetCharFont method, SetCharHyperlink method, SetCharLanguage method, SetCharSize method, SetCharSpacing method, SetCharStyle method, Character object