Static
$tStatic
nextGets or sets the horizontal alignment of the content in a cell. The horizontal alignment of the content in a cell.
InvalidEnumArgumentException The value assigned is not defined in the HorizontalCellAlignment enumeration.
Gets or sets the default font formatting.
This font formatting is just the default font used in the cell. This can be overridden by strings on a character by character basis by using the FormattedString class.
The default font formatting.Gets or sets the number format string.
For more information on excel format strings, consult Microsoft Excel help.
The number format string.ArgumentException The assigned value is an invalid format string and Workbook.validateFormatStrings is True.
Workbook.validateFormatStrings
Gets or sets the indent in units of average character widths.
A value of -1 indicates that the default value should be used.
The indent in units of average character widths or -1 to use the default indent.ArgumentOutOfRangeException The assigned value is not -1 and is outside the valid indent level range of 0 and 250.
Gets or sets the valid which indicates whether the cell is locked in protected mode.
The Locked valid is used in Excel file only if the associated Worksheet or Workbook is protected. Otherwise the value is ignored.
The valid which indicates whether the cell is locked in protected mode.Gets or sets the rotation of the cell content in degrees.
Cell text rotation, in degrees; 0 – 90 is up 0 – 90 degrees, 91 – 180 is down 1 – 90 degrees, and 255 is vertical.
The rotation of the cell content in degrees.Gets or sets the value indicating whether the cell content will shrink to fit the cell.
If True, the size of the cell font will shrink so all data fits within the cell.
The value indicating whether the cell content will shrink to fit the cell.InvalidEnumArgumentException The value assigned is not defined in the ExcelDefaultableBoolean enumeration.
Gets or sets the parent WorkbookStyle of the format.
The parent style of a cell or differential format provides default format values. Depending on which FormatOptions flags are present, only certain groups of format properties will be resolved from parent style. When any of the properties in a group is set to a non-default value, the FormatOptions will automatically have that flag included so the format provides values in that group rather than the style providing values in that group.
By default, all cell and differential formats will have a parent style of the normal style, which is exposed by the WorkbookStyleCollection.normalStyle property. If a value of null is assigned as the Style for a cell or differential format, then NormalStyle will actually be set.
A WorkbookStyle instance if this is a cell or differential format, or null if this is a style format.InvalidOperationException The value assigned is non-null and the format is a style format.
ArgumentException The value assigned is from a different Workbook.
Gets or sets the vertical alignment of the content in a cell. The vertical alignment of the content in a cell.
InvalidEnumArgumentException The value assigned is not defined in the VerticalCellAlignment enumeration.
Gets or sets the value which indicates whether text will wrap in a cell.
If True, and the row associated with the cell has a default WorksheetRow.height, the row's height will automatically be increased to fit wrapped content.
The value which indicates whether text will wrap in a cell.InvalidEnumArgumentException The value assigned is not defined in the ExcelDefaultableBoolean enumeration.
Sets the specified borders for the associated range to the specified style and color.
Identifies the borders to be changed
The color for the borders
The style for the borders
Static
compareStatic
compareStatic
equalsStatic
equalsStatic
getStatic
getStatic
getStatic
reference
Returns and sets formatting information on a range of cells.