Line

Overview

Line is a class in Aspose.PDF FOSS for .NET. Inherits from: Shape.

A line shape.

This class provides 4 methods for working with Line objects in .NET programs. Available methods include: CheckBounds, Line. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: GraphInfo, PositionArray, Text, X1, X2, Y1, and 1 more.

Properties

NameTypeAccessDescription
X1doubleRead/WriteGets or sets the x1.
Y1doubleRead/WriteGets or sets the y1.
X2doubleRead/WriteGets or sets the x2.
Y2doubleRead/WriteGets or sets the y2.
PositionArrayfloat[]Read/WritePolyline vertices as a flat [x0, y0, x1, y1, …] array.
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
Line(x1: double, y1: double, x2: double, y2: double)Calls Line on this Line instance.
Line(positionArray: float[])Create a line (or polyline) from a flat coordinate array [x0, y0, x1, y1, …].
CheckBounds(containerWidth: double, containerHeight: double)Whether every vertex lies within the container’s AABB anchored at the origin.
Line(coordinates: double[])Create a line (or polyline) from a flat coordinate array [x0, y0, x1, y1, …].

See Also