SVGLineElementBuilder.X2

SVGLineElementBuilder.X2 method

Sets the ‘x2’ attribute of the SVG ’line’ element, specifying the x-coordinate of the end point of the line.

public SVGLineElementBuilder X2(double value, LengthType type = LengthType.Px)
ParameterTypeDescription
valueDoubleThe x-coordinate of the line’s end point.
typeLengthTypeThe unit of measurement for the x-coordinate (default is pixels).

Return Value

The current instance of SVGLineElementBuilder for method chaining.

See Also