SetCharSize Method

Sets the font size for the specified character block of the shape's text.

Applies to: Shape object

Syntax

object.SetCharSize ( iFrom, iTo, fontSize )

The SetCharSize 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.
fontSize Required. An expression that returns an Integer value. The font size.

Remarks

The font size (fontSize parameter) is specified in points (1 pt = 1/72 inch).

Note, that if the character block collection of the shape doesn't include the character block within the iFrom to iTo range, the SetCharSize method adds a new character block and sets the specified font size to it.

 

See Also

Character method, CharactersNum method, GetCharacterIndex method, RemoveCharacter method, SetCharColor method, SetCharFont method, SetCharHyperlink method, SetCharLanguage method, SetCharPos method, SetCharSize method, SetCharSpacing method, SetCharStyle method, Character object