Pos Property (Character object)

A Byte type property. The position with respect to the text baseline (subscript, superscript) of this character block.

Applies to: Character object

Syntax

[[Let] byteRet =] object.Pos

[Let] object.Pos = posSet

The Pos property syntax has these parts:

Part Description
object Required. An expression that returns a Character object.
byteRet Optional. A Byte type variable.
posSet Required. An expression that returns a Byte value.

Remarks

The Pos property can take one of the following values:

Constant Value Description
cdPosNormal 0 Normal text size and position.
cdPosSuper 1 Superscript.
cdPosSub 2 Subscript.

The Pos property is also a table parameter of the shape which contains the object character block, that is, its value can be described by a formula. To work with Pos as a table parameter, use the CDPT_CHAR_POS constant tag.

Example

Dim MyShape As Shape

' Assume Shape with ID 1 is on the current page of the document
Set MyShape = thisDoc.ActivePage.ShapeByID(1) ' Change position of MyShape.Character(2) to subscript ' (assume such shape exists)
MyShape.Character(2).Pos = cdbPosSub ' Inform ConceptDraw Engine about the changes.
MyShape.PropertyChanged(CDPT_CHAR_POS)

 

See Also

SetCharPos method