# OdfGradient

An XML-backed named native gradient shared by referencing shapes.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

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

**Modifiers**

sealed

An XML-backed named native gradient shared by referencing shapes.

## Inheritance

- object
- OdfGradient

## Usage

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

- Method [OdfStyleRepository.CreateGradient](/api/open-document/officeimo-opendocument-odfstylerepository/#method-creategradient-string-officeimo-opendocument-odfgradientpattern)
- Method [OdfStyleRepository.FindGradient](/api/open-document/officeimo-opendocument-odfstylerepository/#method-findgradient-string)
- Property [OdfStyleRepository.Gradients](/api/open-document/officeimo-opendocument-odfstylerepository/#property-gradients)

Filter members 

Show inherited

## 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 string Name { get; }` [#](#property-name)

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

Name used by [OdfShape.FillGradientName](/api/open-document/officeimo-opendocument-odfshape/).

`public OdfGradientPattern Pattern { get; set; }` [#](#property-pattern)

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

Reads or replaces a two-color native definition, retaining unrelated attributes.

<!-- PowerForge markdown artifact sha256:4D6488432CE7CBEA3B4BCF9D821842151A6982E307B31E1554B25B7F010FD4F9 -->
