Char class

Char class

Contains the formatting attributes for the shape’s text, such as font, color, text style, case, position relative to the baseline, and point size.

The Char type exposes the following members:

Constructors

ConstructorDescription
Char()Constructor.

Properties

PropertyDescription
ixThe zero-based index of the element within its parent element.
fontSpecifies the ID number of the font used to format the text.
font_nameIt specified the font name of the font used to format the text.It is using for visio 2013
colorWhen contained in a Char element, the Color element.
styleSpecifies the character formatting applied to a range of text in the shape’s text block.
caseDetermines the case of a shape’s text.
posSpecifies the position of the shape’s text relative to the baseline.
font_scaleSpecifies the font width.
localeIt specified the locale of the text run for spell-checking purposes.
sizeSpecifies the size of the text in the shape’s text block.
dbl_underlineSpecifies whether the range of text has a double underline below it.
overlineSpecifies whether the text has a line above it.
highlightIt specified highlight.
perpendicularIt specified whether a text field appears perpendicular to the other text in a text block.
strikethruSpecifies whether the text is formatted as strikethrough.
double_strikethroughDetermines whether text is formatted as double strikethrough.
rtl_textDetermines if the text direction of the current character run is left to right or right to left.
use_verticalDetermines whether the character run is vertical or horizontal.
letterspaceSpecifies the amount of space between two or more characters. Space can be added or subtracted in 1/20th point increments.
color_transDetermines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely transparent).
asian_fontSpecifies the ID number of the font used to format text containing Asian characters.
asian_font_nameIt specified the asian font name of the font used to format the text.It is using for visio 2013
localize_fontSpecifies whether the shape text should be localized (translated into another language).
is_double_underlineIndicating whether the font is double underline.
is_subscriptIndicating whether the font is subscript.
is_superscriptIndicating whether the font is superscript.
is_strikethroughIndicating whether the font is strikethrough.
is_double_strikethroughIndicating whether the font is doubleStrikethrough.
is_underlineIndicating whether the font is underline.
is_italicIndicating whether the font is italic.
is_boldIndicating whether the font is bold.
complex_script_sizeThe size of the font used to format text composed of complex script characters. Complex scripts are languages whose characters require ligation or shaping, such as the right-to-left languages (Arabic, Farsi, Hebrew, and Urdu) and several South Asian languages.
complex_script_fontContains the number of the font used to format text composed of complex script characters. Complex scripts are languages whose characters require ligation or shaping, such as the right-to-left languages (Arabic, Farsi, Hebrew, and Urdu) and several South Asian languages.
complex_script_font_nameIt specified the ComplexScript font name of the font used to format the text.It is using for visio 2013
lang_idIndicates the locale ID (LCID) of the language in which the cell formula, text, custom property, or comment was entered.
For a list of languages supported by Microsoft Office applications and their corresponding language IDs, see the DocLangID element.

Methods

MethodDescription
clone()Creates deep copy of this instance.

See Also