# OfficeTextTabLeaderStyle

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

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`7fbbd72e7c5a` with working tree changes

**Source**

[OfficeTextTabLeaderStyle.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L20)

**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

- Property [OfficeTextTabStop.LeaderStyle](/api/core/officeimo-drawing-officetexttabstop/#property-leaderstyle)

### Accepted by parameters 1

- Method [OfficeTextTabStop.WithLeaderStyle](/api/core/officeimo-drawing-officetexttabstop/#method-withleaderstyle-officeimo-drawing-officetexttableaderstyle) parameter `style`

Filter members 

Show inherited

## 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)` [#](#member-682fa075827636e2702a032a)

[OfficeTextTabLeaderStyle.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L20)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeLength? FontSize { get; }` [#](#property-fontsize)

[OfficeTextTabLeaderStyle.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L37)

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

`public double FontSizeFactor { get; }` [#](#property-fontsizefactor)

[OfficeTextTabLeaderStyle.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L39)

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

`public OfficeColor? Color { get; }` [#](#property-color)

[OfficeTextTabLeaderStyle.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L41)

Foreground override; alpha follows [OfficeTextTabLeaderStyle.Opacity](/api/core/officeimo-drawing-officetexttableaderstyle/) and [OfficeTextTabLeaderStyle.InheritOpacity](/api/core/officeimo-drawing-officetexttableaderstyle/) when supplied.

`public string? FontFamily { get; }` [#](#property-fontfamily)

[OfficeTextTabLeaderStyle.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L43)

Font family override, or null to inherit.

`public bool? Bold { get; }` [#](#property-bold)

[OfficeTextTabLeaderStyle.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L45)

Bold override, or null to inherit.

`public bool? Italic { get; }` [#](#property-italic)

[OfficeTextTabLeaderStyle.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L47)

Italic override, or null to inherit.

`public OfficeTextDecorationStyle? UnderlineStyle { get; }` [#](#property-underlinestyle)

[OfficeTextTabLeaderStyle.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L49)

Underline override, or null to inherit.

`public OfficeTextDecorationStyle? StrikethroughStyle { get; }` [#](#property-strikethroughstyle)

[OfficeTextTabLeaderStyle.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L51)

Strike-through override, or null to inherit.

`public OfficeTextBaseline? Baseline { get; }` [#](#property-baseline)

[OfficeTextTabLeaderStyle.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L53)

Baseline override, or null to inherit.

`public OfficeColor? BackgroundColor { get; }` [#](#property-backgroundcolor)

[OfficeTextTabLeaderStyle.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L55)

Background override, or null to inherit.

`public bool InheritOpacity { get; }` [#](#property-inheritopacity)

[OfficeTextTabLeaderStyle.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L58)

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

`public double? Opacity { get; }` [#](#property-opacity)

[OfficeTextTabLeaderStyle.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/OfficeTextTabLeaderStyle.cs#L60)

Independent alpha override from zero to one, or null.

<!-- PowerForge markdown artifact sha256:C1DD4F9048551C2F0140C7D77EBD58F7E233EDAC3CF46DD1A23784BF4C903B86 -->
