# OfficeGradientSpreadMode

Controls gradient colors beyond the authored stop interval.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[OfficeGradientSpreadMode.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/OfficeGradientSpreadMode.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Controls gradient colors beyond the authored stop interval.

## Inheritance

- Enum
- OfficeGradientSpreadMode

## Usage

Explore 5 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 4

- Field [OfficeGradientSpreadMode.Pad](/api/core/officeimo-drawing-officegradientspreadmode/#field-pad)
- Field [OfficeGradientSpreadMode.Reflect](/api/core/officeimo-drawing-officegradientspreadmode/#field-reflect)
- Field [OfficeGradientSpreadMode.Repeat](/api/core/officeimo-drawing-officegradientspreadmode/#field-repeat)
- Property [OfficeRadialGradient.SpreadMode](/api/core/officeimo-drawing-officeradialgradient/#property-spreadmode)

### Accepted by parameters 1

- Method [OfficeRadialGradient.WithSpreadMode](/api/core/officeimo-drawing-officeradialgradient/#method-withspreadmode-officeimo-drawing-officegradientspreadmode) parameter `spreadMode`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeGradientSpreadMode Pad` [#](#field-pad)

[OfficeGradientSpreadMode.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/OfficeGradientSpreadMode.cs#L6)

Continue the nearest endpoint color.

Value: `0`

`public const OfficeGradientSpreadMode Repeat` [#](#field-repeat)

[OfficeGradientSpreadMode.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/OfficeGradientSpreadMode.cs#L8)

Repeat the stop interval in the same direction.

Value: `1`

`public const OfficeGradientSpreadMode Reflect` [#](#field-reflect)

[OfficeGradientSpreadMode.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/OfficeGradientSpreadMode.cs#L10)

Repeat the stop interval in alternating directions.

Value: `2`

<!-- PowerForge markdown artifact sha256:415BDE119C4639BEB4791D659F66050B9B820E0A4A81E688C6F14D89A3D01C4E -->
