# TextStyleOverrideFluent

The fluent methods of TextStyleOverride, generated from its public properties: A property-named method sets a property and a singular-named method adds…

 Class  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Modifiers**

static

The fluent methods of [TextStyleOverride](/api/chartforgex-typography-textstyleoverride/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- TextStyleOverrideFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static TextStyleOverride Baseline(TextStyleOverride textStyleOverride, TextBaseline? value)` [#](#method-baseline-chartforgex-typography-textstyleoverride-nullable-chartforgex-typography-textbaseline) 

Sets [TextStyleOverride.Baseline](/api/chartforgex-typography-textstyleoverride/): Gets or sets optional subscript or superscript placement.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Typography.TextBaseline? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Baseline = value };    textStyleOverride.Baseline(value);
```

 `public static TextStyleOverride Color(TextStyleOverride textStyleOverride, ChartColor? value)` [#](#method-color-chartforgex-typography-textstyleoverride-nullable-chartforgex-primitives-chartcolor) 

Sets [TextStyleOverride.Color](/api/chartforgex-typography-textstyleoverride/): Gets or sets the optional text color override.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Primitives.ChartColor? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Color = value };    textStyleOverride.Color(value);
```

 `public static TextStyleOverride ColorPaletteIndex(TextStyleOverride textStyleOverride, int? value)` [#](#method-colorpaletteindex-chartforgex-typography-textstyleoverride-nullable-system-int32) 

Sets [TextStyleOverride.ColorPaletteIndex](/api/chartforgex-typography-textstyleoverride/): Gets or sets an optional zero-based CPAL palette. Null inherits; zero resets to the default.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value int? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { ColorPaletteIndex = value };    textStyleOverride.ColorPaletteIndex(value);
```

 `public static TextStyleOverride FontFamily(TextStyleOverride textStyleOverride, string? value)` [#](#method-fontfamily-chartforgex-typography-textstyleoverride-string) 

Sets [TextStyleOverride.FontFamily](/api/chartforgex-typography-textstyleoverride/): Gets or sets the optional CSS font-family override.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value string? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { FontFamily = value };    textStyleOverride.FontFamily(value);
```

 `public static TextStyleOverride FontSize(TextStyleOverride textStyleOverride, double? value)` [#](#method-fontsize-chartforgex-typography-textstyleoverride-nullable-system-double) 

Sets [TextStyleOverride.FontSize](/api/chartforgex-typography-textstyleoverride/): Gets or sets the optional font size override.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value double? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { FontSize = value };    textStyleOverride.FontSize(value);
```

 `public static TextStyleOverride FontWeight(TextStyleOverride textStyleOverride, int? value)` [#](#method-fontweight-chartforgex-typography-textstyleoverride-nullable-system-int32) 

Sets [TextStyleOverride.FontWeight](/api/chartforgex-typography-textstyleoverride/): Gets or sets the optional font weight, from 1 to 1000; 400 is regular and 700 bold.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value int? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { FontWeight = value };    textStyleOverride.FontWeight(value);
```

 `public static TextStyleOverride Italic(TextStyleOverride textStyleOverride, bool value = true)` [#](#method-italic-chartforgex-typography-textstyleoverride-boolean) 

Sets [TextStyleOverride.Italic](/api/chartforgex-typography-textstyleoverride/): Gets or sets a value indicating whether text is italic.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Italic = value };    textStyleOverride.Italic(value);
```

 `public static TextStyleOverride LetterSpacing(TextStyleOverride textStyleOverride, double? value)` [#](#method-letterspacing-chartforgex-typography-textstyleoverride-nullable-system-double) 

Sets [TextStyleOverride.LetterSpacing](/api/chartforgex-typography-textstyleoverride/): Gets or sets additional logical pixels between eligible shaped groups. Null inherits; zero resets spacing.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value double? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { LetterSpacing = value };    textStyleOverride.LetterSpacing(value);
```

 `public static TextStyleOverride OpenTypeLanguageTag(TextStyleOverride textStyleOverride, string? value)` [#](#method-opentypelanguagetag-chartforgex-typography-textstyleoverride-string) 

Sets [TextStyleOverride.OpenTypeLanguageTag](/api/chartforgex-typography-textstyleoverride/): Gets or sets the optional OpenType language-system tag, such as SRB or TRK. A null override retains the fallback style's language; normal selects the font's default.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value string? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { OpenTypeLanguageTag = value };    textStyleOverride.OpenTypeLanguageTag(value);
```

 `public static TextStyleOverride Strikethrough(TextStyleOverride textStyleOverride, bool value = true)` [#](#method-strikethrough-chartforgex-typography-textstyleoverride-boolean) 

Sets [TextStyleOverride.Strikethrough](/api/chartforgex-typography-textstyleoverride/): Gets or sets whether text is struck through. Turning it on selects a single strikethrough unless a style is already set; turning it off selects none.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Strikethrough = value };    textStyleOverride.Strikethrough(value);
```

 `public static TextStyleOverride StrikethroughStyle(TextStyleOverride textStyleOverride, TextDecorationStyle? value)` [#](#method-strikethroughstyle-chartforgex-typography-textstyleoverride-nullable-chartforgex-typography-textdecorationstyle) 

Sets [TextStyleOverride.StrikethroughStyle](/api/chartforgex-typography-textstyleoverride/): Gets or sets an optional strikethrough pattern. None explicitly disables a fallback strike; null clears the strikethrough override so the fallback applies.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Typography.TextDecorationStyle? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { StrikethroughStyle = value };    textStyleOverride.StrikethroughStyle(value);
```

 `public static TextStyleOverride TextCase(TextStyleOverride textStyleOverride, TextCaseTransform? value)` [#](#method-textcase-chartforgex-typography-textstyleoverride-nullable-chartforgex-typography-textcasetransform) 

Sets [TextStyleOverride.TextCase](/api/chartforgex-typography-textstyleoverride/): Gets or sets an optional display-time casing transform.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Typography.TextCaseTransform? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { TextCase = value };    textStyleOverride.TextCase(value);
```

 `public static TextStyleOverride Underline(TextStyleOverride textStyleOverride, bool value = true)` [#](#method-underline-chartforgex-typography-textstyleoverride-boolean) 

Sets [TextStyleOverride.Underline](/api/chartforgex-typography-textstyleoverride/): Gets or sets a value indicating whether text is underlined. Turning it on selects a single underline unless a style is already set; turning it off selects none.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Underline = value };    textStyleOverride.Underline(value);
```

 `public static TextStyleOverride UnderlineStyle(TextStyleOverride textStyleOverride, TextDecorationStyle? value)` [#](#method-underlinestyle-chartforgex-typography-textstyleoverride-nullable-chartforgex-typography-textdecorationstyle) 

Sets [TextStyleOverride.UnderlineStyle](/api/chartforgex-typography-textstyleoverride/): Gets or sets an optional underline pattern. None explicitly disables a fallback underline; null clears the underline override so the fallback applies.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Typography.TextDecorationStyle? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { UnderlineStyle = value };    textStyleOverride.UnderlineStyle(value);
```

 `public static TextStyleOverride Variations(TextStyleOverride textStyleOverride, FontVariationSettings? value)` [#](#method-variations-chartforgex-typography-textstyleoverride-chartforgex-typography-fontvariationsettings) 

Sets [TextStyleOverride.Variations](/api/chartforgex-typography-textstyleoverride/): Gets or sets explicit OpenType axes. Null inherits; Default restores the font's default instance.

Parameters

**textStyleOverride ChartForgeX.Typography.TextStyleOverride required**

The instance.

**value ChartForgeX.Typography.FontVariationSettings? required**

The value.

Returns

 `TextStyleOverride` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Typography.TextStyleOverride { Variations = value };    textStyleOverride.Variations(value);
```

## 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?` 

<!-- PowerForge markdown artifact sha256:0E74C358BCC7B6335BCB33E1B744C2ADFD9AA9E8491596DAC383A89D5A238B83 -->
