# OfficeGradientStop

A color stop inside a reusable gradient descriptor.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeGradientStop.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L15)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficeGradientStop>`

**Modifiers**

sealed

A color stop inside a reusable gradient descriptor.

## Inheritance

- ValueType
- OfficeGradientStop

## Usage

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

- Property [OfficeConicGradient.Stops](/api/core/officeimo-drawing-officeconicgradient/#property-stops)
- Property [OfficeLinearGradient.Stops](/api/core/officeimo-drawing-officelineargradient/#property-stops)
- Property [OfficeRadialGradient.Stops](/api/core/officeimo-drawing-officeradialgradient/#property-stops)

### Accepted by parameters 14

- Constructor [OfficeConicGradient.OfficeConicGradient](/api/core/officeimo-drawing-officeconicgradient/#constructor-ctor-double-double-double-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop) parameter `stops`
- Method [OfficeGradientStop.Equals](/api/core/officeimo-drawing-officegradientstop/#method-equals-officeimo-drawing-officegradientstop) parameter `other`
- Method [OfficeGradientStop.op_Equality](/api/core/officeimo-drawing-officegradientstop/#method-op-equality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `left`
- Method [OfficeGradientStop.op_Equality](/api/core/officeimo-drawing-officegradientstop/#method-op-equality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `right`
- Method [OfficeGradientStop.op_Inequality](/api/core/officeimo-drawing-officegradientstop/#method-op-inequality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `left`
- Method [OfficeGradientStop.op_Inequality](/api/core/officeimo-drawing-officegradientstop/#method-op-inequality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `right`
- Constructor [OfficeLinearGradient.OfficeLinearGradient](/api/core/officeimo-drawing-officelineargradient/#constructor-ctor-double-double-double-double-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `end`
- Constructor [OfficeLinearGradient.OfficeLinearGradient](/api/core/officeimo-drawing-officelineargradient/#constructor-ctor-double-double-double-double-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `start`
- Constructor [OfficeLinearGradient.OfficeLinearGradient](/api/core/officeimo-drawing-officelineargradient/#constructor-ctor-double-double-double-double-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop) parameter `stops`
- Method [OfficeLinearGradient.FromAngle](/api/core/officeimo-drawing-officelineargradient/#method-fromangle-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop-double) parameter `stops`
- Method [OfficeLinearGradient.FromTransformedAngle](/api/core/officeimo-drawing-officelineargradient/#method-fromtransformedangle-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop-double-double-double-officeimo-drawing-officetransform) parameter `stops`
- Constructor [OfficeRadialGradient.OfficeRadialGradient](/api/core/officeimo-drawing-officeradialgradient/#constructor-ctor-double-double-double-double-double-double-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `end`
- Constructor [OfficeRadialGradient.OfficeRadialGradient](/api/core/officeimo-drawing-officeradialgradient/#constructor-ctor-double-double-double-double-double-double-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop) parameter `start`
- Constructor [OfficeRadialGradient.OfficeRadialGradient](/api/core/officeimo-drawing-officeradialgradient/#constructor-ctor-double-double-double-double-double-double-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop) parameter `stops`

Filter members 

Show inherited

## Constructors

`public OfficeGradientStop(double offset, OfficeColor color)` [#](#constructor-ctor-double-officeimo-officecolor)

[OfficeGradientStop.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L15)

Creates a gradient stop.

Parameters

**offset double required**

**color OfficeIMO.OfficeColor required**

## Methods

Equals 2 overloads

`public bool Equals(OfficeGradientStop other)` [#](#method-equals-officeimo-drawing-officegradientstop)

[OfficeGradientStop.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L24)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Drawing.OfficeGradientStop required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

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

[OfficeGradientStop.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L27)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

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

[OfficeGradientStop.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L32)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

`public static bool op_Equality(OfficeGradientStop left, OfficeGradientStop right)` [#](#method-op-equality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop)

[OfficeGradientStop.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L37)

Returns true when two gradient stops are equal.

Parameters

**left OfficeIMO.Drawing.OfficeGradientStop required**

**right OfficeIMO.Drawing.OfficeGradientStop required**

Returns

`bool`

`public static bool op_Inequality(OfficeGradientStop left, OfficeGradientStop right)` [#](#method-op-inequality-officeimo-drawing-officegradientstop-officeimo-drawing-officegradientstop)

[OfficeGradientStop.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L40)

Returns true when two gradient stops are not equal.

Parameters

**left OfficeIMO.Drawing.OfficeGradientStop required**

**right OfficeIMO.Drawing.OfficeGradientStop required**

Returns

`bool`

## Inherited Methods

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public double Offset { get; }` [#](#property-offset)

[OfficeGradientStop.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L8)

Stop offset from 0.0 to 1.0.

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

[OfficeGradientStop.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeGradientStop.cs#L11)

Stop color.

<!-- PowerForge markdown artifact sha256:1BD9E4236094A41A0E45760185E2125D7B6B7D9114F1C6E82DE94811B531913A -->
