Static
$tStatic
nextGets or sets the value indicating whether the font is bold.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The value indicating whether the font is bold.[[InvalidEnumArgumentException]] The value assigned is not defined in the ExcelDefaultableBoolean enumeration.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets or sets the fore color of the font.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The fore color of the font.[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets the formatted string which is controlled by this font. The formatted string which is controlled by this font.
Gets or sets the height of the font.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The height of the font.[[ArgumentOutOfRangeException]] The value assigned is positive and outside the valid font height range of 20 and 8180.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets or sets the value indicating whether the font is italic.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The value indicating whether the font is italic.[[InvalidEnumArgumentException]] The value assigned is not defined in the ExcelDefaultableBoolean enumeration.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets the number of characters covered by this font. Zero indicates the font controls from the [[startIndex]] to the end of the string. The number of characters covered by this font. Zero indicates the font controls from the StartIndex to the end of the string.
Gets or sets the name of the font.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The name of the font.[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets the index of the first character covered by this font. The index of the first character covered by this font.
Gets or sets the value indicating whether the font is struck out.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The value indicating whether the font is struck out.[[InvalidEnumArgumentException]] The value assigned is not defined in the ExcelDefaultableBoolean enumeration.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets or sets the value indicating whether the font is superscript or subscript.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The value indicating whether the font is superscript or subscript.[[InvalidEnumArgumentException]] The value assigned is not defined in the [[FontSuperscriptSubscriptStyle]] enumeration.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Gets or sets the underline style of the font.
All characters in the selection range of this font will be affected by setting this property. Getting this property will return a value which indicates the formatting of the first character in this font's range.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, and a default value is assigned, it will be ignored.
The underline style of the font.[[InvalidEnumArgumentException]] The value assigned is not defined in the [[FontUnderlineStyle]] enumeration.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
Sets all properties of this font to the properties of the specified font.
Note: default values cannot be used in [[FormattedString]] values applied to cells. If this font belongs to a FormattedString which is the value of a cell, any default values on the specified font will be ignored.
[[ArgumentNullException]] 'source' is null.
[[InvalidOperationException]] The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
[[InvalidOperationException]] The font's selection range is outside the valid character range of the associated formatted string or text.
The font whose properties should be copied over to this font.
Static
compareStatic
compareStatic
equalsStatic
equalsStatic
getStatic
getStatic
getStatic
reference
Controls the formatting of a range of characters in a [[formattedString]].
The formatting of the string is controlled in a similar fashion as it would be in Microsoft Excel. In Excel, the user must select a portion of the text and set the various formatting properties of that selected text.
With the [[formattedString]], a portion of the string is "selected" by calling eitherGetFont(int) or
GetFont(int,int) . Formatting properties
are then set on the returned FormattedStringFont and all characters in the font's selection range are given these
properties.
Getting the formatting properties of a FormattedStringFont will return the formatting of the first character in font's selection range. This is similar to Excel, which will update the formatting interface to reflect the formatting of the first character in a selection range when a cell's text is selected.
@see@see@see