API Reference
OfficeRadialGradient
Dependency-free radial gradient intent in normalized local coordinates. Coordinates use a top-left origin where 0,0 is the shape's top-left corner and 1,1 is its bottom-right corner. Ellipse centers may sit outside that box to preserve authored gradients whose focal point is off-canvas. Independent horizontal and vertical radii allow axis-aligned ellipses while the original circle constructors remain source-compatible.
Inheritance
- Object
- OfficeRadialGradient
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
- Method OfficeRadialGradient.Centered
- Method OfficeRadialGradient.Clone
- Property OfficeShape.FillRadialGradient
- Property OfficeShape.StrokeRadialGradient
Accepted by parameters
Constructors
public OfficeRadialGradient(Double startX, Double startY, Double startRadius, Double endX, Double endY, Double endRadius, OfficeGradientStop start, OfficeGradientStop end) #Creates a radial gradient between two circles.
Parameters
- startX System.Double
- startY System.Double
- startRadius System.Double
- endX System.Double
- endY System.Double
- endRadius System.Double
- start OfficeIMO.Drawing.OfficeGradientStop
- end OfficeIMO.Drawing.OfficeGradientStop
public OfficeRadialGradient(Double startX, Double startY, Double startRadius, Double endX, Double endY, Double endRadius, IReadOnlyList<OfficeGradientStop> stops) #Creates a radial gradient between two circles with two or more ordered stops.
Parameters
- startX System.Double
- startY System.Double
- startRadius System.Double
- endX System.Double
- endY System.Double
- endRadius System.Double
- stops System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeGradientStop}
public OfficeRadialGradient(Double startX, Double startY, Double startRadiusX, Double startRadiusY, Double endX, Double endY, Double endRadiusX, Double endRadiusY, IReadOnlyList<OfficeGradientStop> stops) #Creates a radial gradient between two axis-aligned ellipses with the same aspect ratio.
Parameters
- startX System.Double
- startY System.Double
- startRadiusX System.Double
- startRadiusY System.Double
- endX System.Double
- endY System.Double
- endRadiusX System.Double
- endRadiusY System.Double
- stops System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeGradientStop}
Methods
public static OfficeRadialGradient Centered(OfficeColor startColor, OfficeColor endColor) #OfficeRadialGradientCreates a centered radial gradient from the center outward.
Parameters
- startColor OfficeIMO.Drawing.OfficeColor
- endColor OfficeIMO.Drawing.OfficeColor
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Double StartX { get; } #Start circle center X coordinate in shape-local units.
public Double StartY { get; } #Start circle center Y coordinate in shape-local units.
public Double StartRadius { get; } #Normalized start circle radius, or the horizontal radius for an elliptical definition.
public Double StartRadiusX { get; } #Normalized horizontal start ellipse radius.
public Double StartRadiusY { get; } #Normalized vertical start ellipse radius.
public Double EndX { get; } #End circle center X coordinate in shape-local units.
public Double EndY { get; } #End circle center Y coordinate in shape-local units.
public Double EndRadius { get; } #Normalized end circle radius, or the horizontal radius for an elliptical definition.
public Double EndRadiusX { get; } #Normalized horizontal end ellipse radius.
public Double EndRadiusY { get; } #Normalized vertical end ellipse radius.
public IReadOnlyList<OfficeGradientStop> Stops { get; } #Gradient stops in offset order.