Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfGradientPattern

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
1f76172c94d1 with working tree changes
Modifiers
sealed

Immutable native gradient colors, angle, border, intensities and center.

Inheritance

  • object
  • OdfGradientPattern

Remarks

Fractions use one for 100%. The model retains all six styles; drawing projection has a narrower, reported profile.

Usage

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

Accepted by parameters 1

Constructors

public OdfGradientPattern(OdfGradientStyle style, OdfColor startColor, OdfColor endColor, double angleDegrees = 0, double border = 0, double startIntensity = 1, double endIntensity = 1, double centerX = 0.5, double centerY = 0.5) #

Creates a two-color gradient. Centers may lie outside the filled area.

Parameters

style OfficeIMO.OpenDocument.OdfGradientStyle required
startColor OfficeIMO.OpenDocument.OdfColor required
endColor OfficeIMO.OpenDocument.OdfColor required
angleDegrees double = 0 optional
border double = 0 optional
startIntensity double = 1 optional
endIntensity double = 1 optional
centerX double = 0.5 optional
centerY double = 0.5 optional

Properties

public OdfGradientStyle Style { get; } #

Native interpolation style.

public OdfColor StartColor { get; } #

Declared start color before intensity adjustment.

public OdfColor EndColor { get; } #

Declared end color before intensity adjustment.

public double AngleDegrees { get; } #

Clockwise angle from vertical in degrees, ignored for radial gradients.

public double Border { get; } #

Solid border fraction from zero to one.

public double StartIntensity { get; } #

Start color intensity from zero to one.

public double EndIntensity { get; } #

End color intensity from zero to one.

public double CenterX { get; } #

Horizontal center as a fraction of the geometry bounds.

public double CenterY { get; } #

Vertical center as a fraction of the geometry bounds.