# OdfGradientStyle

The six native two-color OpenDocument gradient styles.

Enum 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfGradientPattern.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

The six native two-color OpenDocument gradient styles.

## Inheritance

- Enum
- OdfGradientStyle

## Usage

Explore 8 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 7

- Property [OdfGradientPattern.Style](/api/open-document/officeimo-opendocument-odfgradientpattern/#property-style)
- Field [OdfGradientStyle.Axial](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-axial)
- Field [OdfGradientStyle.Ellipsoid](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-ellipsoid)
- Field [OdfGradientStyle.Linear](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-linear)
- Field [OdfGradientStyle.Radial](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-radial)
- Field [OdfGradientStyle.Rectangular](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-rectangular)
- Field [OdfGradientStyle.Square](/api/open-document/officeimo-opendocument-odfgradientstyle/#field-square)

### Accepted by parameters 1

- Constructor [OdfGradientPattern.OdfGradientPattern](/api/open-document/officeimo-opendocument-odfgradientpattern/#constructor-ctor-officeimo-opendocument-odfgradientstyle-officeimo-opendocument-odfcolor-officeimo-opendocument-odfcolor-double-double-double-double-double-double) parameter `style`

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 OdfGradientStyle Linear` [#](#field-linear)

[OdfGradientPattern.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L6)

Interpolation along an axis, clockwise from vertical.

Value: `0`

`public const OdfGradientStyle Axial` [#](#field-axial)

[OdfGradientPattern.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L8)

Mirrored interpolation, with the start color at the axis center.

Value: `1`

`public const OdfGradientStyle Radial` [#](#field-radial)

[OdfGradientPattern.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L10)

Circular interpolation, with the end color at the center.

Value: `2`

`public const OdfGradientStyle Ellipsoid` [#](#field-ellipsoid)

[OdfGradientPattern.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L12)

Elliptical interpolation.

Value: `3`

`public const OdfGradientStyle Square` [#](#field-square)

[OdfGradientPattern.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L14)

Concentric square interpolation.

Value: `4`

`public const OdfGradientStyle Rectangular` [#](#field-rectangular)

[OdfGradientPattern.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfGradientPattern.cs#L16)

Concentric rectangular interpolation.

Value: `5`

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