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
| Name | Description |
|---|---|
| Char | Constructor. |
Properties
| Name | Type | Description |
|---|---|---|
| IX | int | The zero-based index of the element within its parent element. |
| Del | int | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| Font | IntValue | Specifies the ID number of the font used to format the text. |
| FontName | StrValue | It specified the font name of the font used to format the text.It is using for visio 2013 |
| Color | ColorValue | When contained in a Char element, the Color element. |
| Style | Style | Specifies the character formatting applied to a range of text in the shape’s text block. |
| Case | Case | Determines the case of a shape’s text. |
| Pos | Pos | Specifies the position of the shape’s text relative to the baseline. |
| FontScale | DoubleValue | Specifies the font width. |
| Locale | StrValue | It specified the locale of the text run for spell-checking purposes. |
| Size | DoubleValue | Specifies the size of the text in the shape’s text block. |
| DblUnderline | BoolValue | Specifies whether the range of text has a double underline below it. |
| Overline | BoolValue | Specifies whether the text has a line above it. |
| Highlight | BoolValue | It specified highlight. |
| Perpendicular | StrValue | It specified whether a text field appears perpendicular to the other text in a text block. |
| Strikethru | BoolValue | Specifies whether the text is formatted as strikethrough. |
| DoubleStrikethrough | BoolValue | Determines whether text is formatted as double strikethrough. |
| RTLText | BoolValue | Determines if the text direction of the current character run is left to right or right to left. |
| UseVertical | BoolValue | Determines whether the character run is vertical or horizontal. |
| Letterspace | DoubleValue | Specifies the amount of space between two or more characters. Space can be added or subtracted in 1/20th point increment |
| ColorTrans | DoubleValue | Determines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely tra |
| AsianFont | IntValue | Specifies the ID number of the font used to format text containing Asian characters. |
| AsianFontName | StrValue | It specified the asian font name of the font used to format the text.It is using for visio 2013 |
| LocalizeFont | LocalizeFont | Specifies whether the shape text should be localized (translated into another language). |
| IsDoubleUnderline | boolean | Indicating whether the font is double underline. |
| IsSubscript | boolean | Indicating whether the font is subscript. |
| IsSuperscript | boolean | Indicating whether the font is superscript. |
| IsStrikethrough | boolean | Indicating whether the font is strikethrough. |
| IsDoubleStrikethrough | boolean | Indicating whether the font is doubleStrikethrough. |
| IsUnderline | boolean | Indicating whether the font is underline. |
| IsItalic | boolean | Indicating whether the font is italic. |
| IsBold | boolean | Indicating whether the font is bold. |
| ComplexScriptSize | DoubleValue | The size of the font used to format text composed of complex script characters. Complex scripts are languages whose char |
| ComplexScriptFont | IntValue | Contains the number of the font used to format text composed of complex script characters. Complex scripts are languages |
| ComplexScriptFontName | StrValue | It specified the ComplexScript font name of the font used to format the text.It is using for visio 2013 |
| LangID | IntValue | Indicates the locale ID (LCID) of the language in which the cell formula, text, custom property, or comment was entered. |
Methods
| Name | Description |
|---|---|
| deepClone | Creates 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.