Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextTabLeaderStyle

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
7fbbd72e7c5a with working tree changes
Modifiers
sealed

Immutable text-style overrides for a textual tab leader. Unspecified properties inherit the tab run.

Inheritance

  • object
  • OfficeTextTabLeaderStyle

Usage

Explore 2 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 1

Accepted by parameters 1

Constructors

public OfficeTextTabLeaderStyle(OfficeLength? fontSize = null, double fontSizeFactor = 1, OfficeColor? color = null, string? fontFamily = null, bool? bold = null, bool? italic = null, OfficeTextDecorationStyle? underlineStyle = null, OfficeTextDecorationStyle? strikethroughStyle = null, OfficeTextBaseline? baseline = null, OfficeColor? backgroundColor = null, bool inheritOpacity = false, double? opacity = null) #

Creates a leader style using an absolute font size or a multiplier of the active tab run's size.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
Positive absolute font size before drawing scale and frame fitting; null uses fontSizeFactor.
fontSizeFactor double = 1 optional
Positive multiplier of the active font size when no absolute size is supplied.
color OfficeIMO.OfficeColor? = null optional
Optional complete foreground color, including alpha.
fontFamily string? = null optional
Optional font family.
bold bool? = null optional
Optional bold override.
italic bool? = null optional
Optional italic override.
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle? = null optional
Optional underline override; None removes inherited underline.
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle? = null optional
Optional strike-through override; None removes inherited strike-through.
baseline OfficeIMO.Drawing.OfficeTextBaseline? = null optional
Optional baseline override.
backgroundColor OfficeIMO.OfficeColor? = null optional
Optional background override; transparent removes inherited background paint.
inheritOpacity bool = false optional
Use the active run's alpha, including when color overrides its RGB.
opacity double? = null optional
Optional alpha from zero to one; takes precedence over inherited or color alpha.

Properties

public OfficeLength? FontSize { get; } #

Absolute font size before drawing scale and frame fitting, or null for a relative size.

public double FontSizeFactor { get; } #

Multiplier of the active tab run's font size when no absolute size is supplied.

public OfficeColor? Color { get; } #

Foreground override; alpha follows OfficeTextTabLeaderStyle.Opacity and OfficeTextTabLeaderStyle.InheritOpacity when supplied.

public string? FontFamily { get; } #

Font family override, or null to inherit.

public bool? Bold { get; } #

Bold override, or null to inherit.

public bool? Italic { get; } #

Italic override, or null to inherit.

public OfficeTextDecorationStyle? UnderlineStyle { get; } #

Underline override, or null to inherit.

public OfficeTextDecorationStyle? StrikethroughStyle { get; } #

Strike-through override, or null to inherit.

public OfficeTextBaseline? Baseline { get; } #

Baseline override, or null to inherit.

public OfficeColor? BackgroundColor { get; } #

Background override, or null to inherit.

public bool InheritOpacity { get; } #

Whether the active run's alpha is retained when no opacity override is supplied.

public double? Opacity { get; } #

Independent alpha override from zero to one, or null.