Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeConicGradient

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
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

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

public OfficeConicGradient(Double centerX, Double centerY, Double startAngle, IReadOnlyList<OfficeGradientStop> stops) #

Creates a conic gradient in normalized local coordinates.

Parameters

centerX System.Double requiredposition: 0
centerY System.Double requiredposition: 1
startAngle System.Double requiredposition: 2
stops System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeGradientStop} requiredposition: 3

Methods

public OfficeConicGradient Clone() #
Returns: OfficeConicGradient

Creates a detached copy.

public OfficeDrawing CreateDrawing(Double width, Double height, Int32 qualitySegments = 360) #
Returns: OfficeDrawing

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

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
qualitySegments System.Int32 = 360 optionalposition: 2

Properties

public Double CenterX { get; } #

Normalized horizontal center coordinate.

public Double CenterY { get; } #

Normalized vertical center coordinate.

public Double StartAngle { get; } #

Clockwise start angle in degrees where zero points upward.

public IReadOnlyList<OfficeGradientStop> Stops { get; } #

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