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.

Constructors

NameDescription
CharConstructor.

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.

Char()

Constructor.

Char.IX property

The zero-based index of the element within its parent element.

Type: int

Char.Del property

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

Type: int

Char.Font property

Specifies the ID number of the font used to format the text.

Type: IntValue

Char.FontName property

It specified the font name of the font used to format the text.It is using for visio 2013

Type: StrValue

Char.Color property

When contained in a Char element, the Color element.

Type: ColorValue

Char.Style property

Specifies the character formatting applied to a range of text in the shape’s text block.

Type: Style

Char.Case property

Determines the case of a shape’s text.

Type: Case

Char.Pos property

Specifies the position of the shape’s text relative to the baseline.

Type: Pos

Char.FontScale property

Specifies the font width.

Type: DoubleValue

Char.Locale property

It specified the locale of the text run for spell-checking purposes.

Type: StrValue

Char.Size property

Specifies the size of the text in the shape’s text block.

Type: DoubleValue

Char.DblUnderline property

Specifies whether the range of text has a double underline below it.

Type: BoolValue

Char.Overline property

Specifies whether the text has a line above it.

Type: BoolValue

Char.Highlight property

It specified highlight.

Type: BoolValue

Char.Perpendicular property

It specified whether a text field appears perpendicular to the other text in a text block.

Type: StrValue

Char.Strikethru property

Specifies whether the text is formatted as strikethrough.

Type: BoolValue

Char.DoubleStrikethrough property

Determines whether text is formatted as double strikethrough.

Type: BoolValue

Char.RTLText property

Determines if the text direction of the current character run is left to right or right to left.

Type: BoolValue

Char.UseVertical property

Determines whether the character run is vertical or horizontal.

Type: BoolValue

Char.Letterspace property

Specifies the amount of space between two or more characters. Space can be added or subtracted in 1/20th point increments.

Type: DoubleValue

Char.ColorTrans property

Determines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely transparent).

Type: DoubleValue

Char.AsianFont property

Specifies the ID number of the font used to format text containing Asian characters.

Type: IntValue

Char.AsianFontName property

It specified the asian font name of the font used to format the text.It is using for visio 2013

Type: StrValue

Char.LocalizeFont property

Specifies whether the shape text should be localized (translated into another language).

Type: LocalizeFont

Char.IsDoubleUnderline property

Indicating whether the font is double underline.

Type: boolean

Char.IsSubscript property

Indicating whether the font is subscript.

Type: boolean

Char.IsSuperscript property

Indicating whether the font is superscript.

Type: boolean

Char.IsStrikethrough property

Indicating whether the font is strikethrough.

Type: boolean

Char.IsDoubleStrikethrough property

Indicating whether the font is doubleStrikethrough.

Type: boolean

Char.IsUnderline property

Indicating whether the font is underline.

Type: boolean

Char.IsItalic property

Indicating whether the font is italic.

Type: boolean

Char.IsBold property

Indicating whether the font is bold.

Type: boolean

Char.ComplexScriptSize property

The 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.

Type: DoubleValue

Char.ComplexScriptFont property

Contains 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.

Type: IntValue

Char.ComplexScriptFontName property

It specified the ComplexScript font name of the font used to format the text.It is using for visio 2013

Type: StrValue

Char.LangID property

Indicates 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.

Type: IntValue

deepClone()

Creates deep copy of this instance.