Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeThemeTableStyle

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

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

Accepted by parameters 2

Constructors

OfficeThemeTableStyle 2 overloads
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 required
headerText OfficeIMO.OfficeColor required
banding bool required
bandFill OfficeIMO.OfficeColor required
borderColor OfficeIMO.OfficeColor required
borderWidth OfficeIMO.OfficeLength required
cellPadding OfficeIMO.OfficeLength required
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 required
headerText OfficeIMO.OfficeColor required
banding bool required
bandFill OfficeIMO.OfficeColor required
borderColor OfficeIMO.OfficeColor required
borderWidth OfficeIMO.OfficeLength required
cellPadding OfficeIMO.OfficeLength required
borderMode OfficeIMO.OfficeThemeTableBorderMode required
headerRule OfficeIMO.OfficeThemeRule required
headerBold bool required
numberAlignment OfficeIMO.OfficeAlignment required

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 optional
headerText OfficeIMO.OfficeColor? = null optional
banding bool? = null optional
bandFill OfficeIMO.OfficeColor? = null optional
borderColor OfficeIMO.OfficeColor? = null optional
borderWidth OfficeIMO.OfficeLength? = null optional
cellPadding OfficeIMO.OfficeLength? = null optional
borderMode OfficeIMO.OfficeThemeTableBorderMode? = null optional
headerRule OfficeIMO.OfficeThemeRule? = null optional
headerBold bool? = null optional
numberAlignment OfficeIMO.OfficeAlignment? = null optional

Properties

public OfficeColor HeaderFill { get; } #

Gets the header background.

public OfficeColor HeaderText { get; } #

Gets the header text color.

public bool Banding { get; } #

Gets whether alternating row fills are enabled.

public OfficeColor BandFill { get; } #

Gets the alternating row fill.

public OfficeColor BorderColor { get; } #

Gets table border color.

public OfficeLength BorderWidth { get; } #

Gets table border width.

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 bool HeaderBold { get; } #

Gets whether header text is bold.

public OfficeAlignment NumberAlignment { get; } #

Gets the alignment of numeric cells.