SVGLinearGradientElementBuilder.X1

SVGLinearGradientElementBuilder.X1 method

Sets the ‘x1’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the start point of the gradient.

public SVGLinearGradientElementBuilder X1(double value, LengthType type = LengthType.Px)
ParameterTypeDescription
valueDoubleThe x-coordinate of the gradient’s start point.
typeLengthTypeThe unit of measurement for the x-coordinate (default is pixels).

Return Value

The current instance of SVGLinearGradientElementBuilder for method chaining.

See Also