Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeThemeRule

OfficeIMO

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

A horizontal rule (colour and stroke width) drawn under a title, a table header or above a footer.

Inheritance

  • object
  • OfficeThemeRule

Usage

Explore 11 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.

Accepted by parameters 6

Constructors

public OfficeThemeRule(OfficeColor color, OfficeLength width) #

Creates an immutable rule.

Parameters

color OfficeIMO.OfficeColor required
width OfficeIMO.OfficeLength required

Methods

public OfficeThemeRule With(OfficeColor? color = null, OfficeLength? width = null) #

Returns a copy with the supplied replacements; omitted values are retained.

Parameters

color OfficeIMO.OfficeColor? = null optional
width OfficeIMO.OfficeLength? = null optional

Properties

public static OfficeThemeRule None { get; } #

Gets a rule that is not drawn.

public OfficeColor Color { get; } #

Gets the rule colour, which may refer to a theme role.

public OfficeLength Width { get; } #

Gets the stroke width; zero means no rule.

public bool IsVisible { get; } #

Gets whether the rule is drawn.