OfficeThemeTableStyle
OfficeIMO
Table colors and geometry shared by authoring formats.
Inheritance
- object
- OfficeThemeTableStyle
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property OfficeTheme.TableStyle
- Method OfficeThemeTableStyle.With
Accepted by parameters 2
- Constructor OfficeTheme.OfficeTheme
- Method OfficeTheme.WithTableStyle
Constructors
public OfficeThemeTableStyle(OfficeColor headerFill, OfficeColor headerText, bool banding, OfficeColor bandFill, OfficeColor borderColor, OfficeLength borderWidth, OfficeLength cellPadding) #Creates immutable table colors and geometry with horizontal borders, a bold header, no header rule and right-aligned numbers.
Parameters
- headerFill OfficeIMO.OfficeColor
- headerText OfficeIMO.OfficeColor
- banding bool
- bandFill OfficeIMO.OfficeColor
- borderColor OfficeIMO.OfficeColor
- borderWidth OfficeIMO.OfficeLength
- cellPadding OfficeIMO.OfficeLength
public OfficeThemeTableStyle(OfficeColor headerFill, OfficeColor headerText, bool banding, OfficeColor bandFill, OfficeColor borderColor, OfficeLength borderWidth, OfficeLength cellPadding, OfficeThemeTableBorderMode borderMode, OfficeThemeRule headerRule, bool headerBold, OfficeAlignment numberAlignment) #Creates immutable table colors, geometry, border mode, header treatment and numeric alignment.
Parameters
- headerFill OfficeIMO.OfficeColor
- headerText OfficeIMO.OfficeColor
- banding bool
- bandFill OfficeIMO.OfficeColor
- borderColor OfficeIMO.OfficeColor
- borderWidth OfficeIMO.OfficeLength
- cellPadding OfficeIMO.OfficeLength
- borderMode OfficeIMO.OfficeThemeTableBorderMode
- headerRule OfficeIMO.OfficeThemeRule
- headerBold bool
- numberAlignment OfficeIMO.OfficeAlignment
Methods
public OfficeThemeTableStyle With(OfficeColor? headerFill = null, OfficeColor? headerText = null, bool? banding = null, OfficeColor? bandFill = null, OfficeColor? borderColor = null, OfficeLength? borderWidth = null, OfficeLength? cellPadding = null, OfficeThemeTableBorderMode? borderMode = null, OfficeThemeRule? headerRule = null, bool? headerBold = null, OfficeAlignment? numberAlignment = null) #Returns a copy with the supplied replacements; omitted values are retained.
Parameters
- headerFill OfficeIMO.OfficeColor? = null
- headerText OfficeIMO.OfficeColor? = null
- banding bool? = null
- bandFill OfficeIMO.OfficeColor? = null
- borderColor OfficeIMO.OfficeColor? = null
- borderWidth OfficeIMO.OfficeLength? = null
- cellPadding OfficeIMO.OfficeLength? = null
- borderMode OfficeIMO.OfficeThemeTableBorderMode? = null
- headerRule OfficeIMO.OfficeThemeRule? = null
- headerBold bool? = null
- numberAlignment OfficeIMO.OfficeAlignment? = null
Returns
OfficeThemeTableStyleInherited Methods
Properties
public bool Banding { get; } #Gets whether alternating row fills are enabled.
public OfficeLength CellPadding { get; } #Gets padding on each cell edge.
public OfficeThemeTableBorderMode BorderMode { get; } #Gets which borders are drawn.
public OfficeThemeRule HeaderRule { get; } #Gets the rule under the header row, or OfficeThemeRule.None.
public OfficeAlignment NumberAlignment { get; } #Gets the alignment of numeric cells.