GradientFormat / PatternFormat
These classes define gradient and pattern fill details, accessed via FillFormat.GradientFormat and FillFormat.PatternFormat.
Package : Aspose.Slides.Foss (net9.0)
GradientFormat
Properties
Property Type Access Description GradientStopsIGradientStopCollectionRead Collection of gradient color stops. GradientDirectionGradientDirectionRead Gradient direction. GradientShapeGradientShapeRead Gradient shape (Linear, Rectangular, etc.). LinearGradientAnglefloatRead Angle for linear gradients. LinearGradientScaledNullableBoolRead Whether the gradient is scaled. TileFlipTileFlipRead Tile flip mode for the gradient.
GradientStop
Properties
Property Type Access Description PositionfloatRead Position along the gradient (0.0–1.0). ColorIColorFormatRead Color at this stop.
GradientStopCollection
Properties
Property Type Access Description CountintRead Number of gradient stops.
Methods
Method Description Add(float position, Color color)Add a stop with an RGB color. Add(float position, PresetColor presetColor)Add a stop with a preset color. Add(float position, SchemeColor schemeColor)Add a stop with a scheme color. Insert(int index, float position, Color color)Insert a stop at a specific index. RemoveAt(int index)Remove the stop at the specified index. Clear()Remove all stops.
PatternFormat
Properties
Property Type Access Description PatternStylePatternStyleRead Pattern style (e.g., Cross, DiagonalBrick, etc.). ForeColorIColorFormatRead Foreground color of the pattern. BackColorIColorFormatRead Background color of the pattern.
Usage Examples
Read Gradient Stops
Read Pattern Fill
See Also