Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OdfGradientPattern

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

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

Returned or exposed by

Accepted by parameters

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 requiredposition: 0
startColor OfficeIMO.OpenDocument.OdfColor requiredposition: 1
endColor OfficeIMO.OpenDocument.OdfColor requiredposition: 2
angleDegrees System.Double = 0 optionalposition: 3
border System.Double = 0 optionalposition: 4
startIntensity System.Double = 1 optionalposition: 5
endIntensity System.Double = 1 optionalposition: 6
centerX System.Double = 0.5 optionalposition: 7
centerY System.Double = 0.5 optionalposition: 8

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.