Char

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.

Char()

Constructor.

Properties

NameTypeDescription
IXintThe zero-based index of the element within its parent element.
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
FontIntValueSpecifies the ID number of the font used to format the text.
FontNameStrValueIt specified the font name of the font used to format the text.It is using for visio 2013
ColorColorValueWhen contained in a Char element, the Color element.
StyleStyleSpecifies the character formatting applied to a range of text in the shape’s text block.
CaseCaseDetermines the case of a shape’s text.
PosPosSpecifies the position of the shape’s text relative to the baseline.
FontScaleDoubleValueSpecifies the font width.
LocaleStrValueIt specified the locale of the text run for spell-checking purposes.
SizeDoubleValueSpecifies the size of the text in the shape’s text block.
DblUnderlineBoolValueSpecifies whether the range of text has a double underline below it.
OverlineBoolValueSpecifies whether the text has a line above it.
HighlightBoolValueIt specified highlight.
PerpendicularStrValueIt specified whether a text field appears perpendicular to the other text in a text block.
StrikethruBoolValueSpecifies whether the text is formatted as strikethrough.
DoubleStrikethroughBoolValueDetermines whether text is formatted as double strikethrough.
RTLTextBoolValueDetermines if the text direction of the current character run is left to right or right to left.
UseVerticalBoolValueDetermines whether the character run is vertical or horizontal.
LetterspaceDoubleValueSpecifies the amount of space between two or more characters. Space can be added or subtracted in 1/20th point increment
ColorTransDoubleValueDetermines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely tra
AsianFontIntValueSpecifies the ID number of the font used to format text containing Asian characters.
AsianFontNameStrValueIt specified the asian font name of the font used to format the text.It is using for visio 2013
LocalizeFontLocalizeFontSpecifies whether the shape text should be localized (translated into another language).
IsDoubleUnderlinebooleanIndicating whether the font is double underline.
IsSubscriptbooleanIndicating whether the font is subscript.
IsSuperscriptbooleanIndicating whether the font is superscript.
IsStrikethroughbooleanIndicating whether the font is strikethrough.
IsDoubleStrikethroughbooleanIndicating whether the font is doubleStrikethrough.
IsUnderlinebooleanIndicating whether the font is underline.
IsItalicbooleanIndicating whether the font is italic.
IsBoldbooleanIndicating whether the font is bold.
ComplexScriptSizeDoubleValueThe size of the font used to format text composed of complex script characters. Complex scripts are languages whose char
ComplexScriptFontIntValueContains the number of the font used to format text composed of complex script characters. Complex scripts are languages
ComplexScriptFontNameStrValueIt specified the ComplexScript font name of the font used to format the text.It is using for visio 2013
LangIDIntValueIndicates the locale ID (LCID) of the language in which the cell formula, text, custom property, or comment was entered.

Methods

NameDescription
deepCloneCreates deep copy of this instance.