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)
ParameterTypeDescription
valueDoubleThe offset value of the color stop (0 to 1 for numbers, 0% to 100% for percentages).
unitTypeStopUnitTypeThe unit type of the offset value (number or percentage).

Return Value

The current instance of SVGStopElementBuilder for method chaining.

See Also