# OfficeConicGradient

Backend-neutral conic gradient intent that can be expanded into a bounded vector drawing. Stop offsets cover one clockwise turn, and zero degrees points upward.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeConicGradient.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L23)

**Modifiers**

sealed

Backend-neutral conic gradient intent that can be expanded into a bounded vector drawing. Stop offsets cover one clockwise turn, and zero degrees points upward.

## Inheritance

- object
- OfficeConicGradient

## Usage

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

- Method [OfficeConicGradient.Clone](/api/core/officeimo-drawing-officeconicgradient/#method-clone)

Filter members 

Show inherited

## Constructors

`public OfficeConicGradient(double centerX, double centerY, double startAngle, IReadOnlyList<OfficeGradientStop> stops)` [#](#constructor-ctor-double-double-double-collections-generic-ireadonlylist-officeimo-drawing-officegradientstop)

[OfficeConicGradient.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L23)

Creates a conic gradient in normalized local coordinates.

Parameters

**centerX double required**

**centerY double required**

**startAngle double required**

**stops System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeGradientStop> required**

## Methods

`public OfficeConicGradient Clone()` [#](#method-clone)

[OfficeConicGradient.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L38)

Creates a detached copy.

Returns

`OfficeConicGradient`

`public OfficeDrawing CreateDrawing(double width, double height, int qualitySegments = 360)` [#](#method-createdrawing-double-double-int32)

[OfficeConicGradient.Drawing.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.Drawing.cs#L9)

Expands the gradient into clipped solid-color vector regions shared by raster, SVG, and PDF exporters. Authored stop boundaries are retained in addition to the uniform quality segments.

Parameters

**width double required**

**height double required**

**qualitySegments int = 360 optional**

Returns

`OfficeDrawing`

## 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 double CenterX { get; }` [#](#property-centerx)

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

Normalized horizontal center coordinate.

`public double CenterY { get; }` [#](#property-centery)

[OfficeConicGradient.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L14)

Normalized vertical center coordinate.

`public double StartAngle { get; }` [#](#property-startangle)

[OfficeConicGradient.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L17)

Clockwise start angle in degrees where zero points upward.

`public IReadOnlyList<OfficeGradientStop> Stops { get; }` [#](#property-stops)

[OfficeConicGradient.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeConicGradient.cs#L20)

Gradient stops in non-decreasing offset order from zero to one.

<!-- PowerForge markdown artifact sha256:13D900F5317FCC5E19B09D3090328F3C591C3B575596BBBDCFCDBCAC432C7A7C -->
