OdfGradientPattern
OfficeIMO.OpenDocument
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
- Property OdfGradient.Pattern
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
- startColor OfficeIMO.OpenDocument.OdfColor
- endColor OfficeIMO.OpenDocument.OdfColor
- angleDegrees double = 0
- border double = 0
- startIntensity double = 1
- endIntensity double = 1
- centerX double = 0.5
- centerY double = 0.5
Inherited Methods
Properties
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 StartIntensity { get; } #Start 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.