SVGStopElementBuilder.Offset
SVGStopElementBuilder.Offset method
Sets the ‘offset’ attribute of the SVG ‘stop’ element, specifying the position of the color stop within the gradient.
public SVGStopElementBuilder Offset(double value, StopUnitType unitType = StopUnitType.Number)
Parameter | Type | Description |
---|---|---|
value | Double | The offset value of the color stop (0 to 1 for numbers, 0% to 100% for percentages). |
unitType | StopUnitType | The unit type of the offset value (number or percentage). |
Return Value
The current instance of SVGStopElementBuilder for method chaining.
See Also
- enum StopUnitType
- class SVGStopElementBuilder
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG