LineTo

Overview

LineTo is a class in Aspose.PDF FOSS for .NET. Inherits from: Operator.

l — Append straight line segment to (X, Y).

This class declares 6 methods for LineTo objects in .NET programs. Available methods include: Accept, IsTextShowOperator, LineTo, ToPdf, ToString, ValueEquals. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: CommandName, Index, X, Y.

Properties

NameTypeAccessDescription
XdoubleRead/WriteGets or sets the x coordinate of the end of the line, in user space units.
YdoubleRead/WriteGets or sets the y coordinate of the end of the line, in user space units.
CommandNamestringReadThe PDF command name (last token of the serialised form, e.g.
IndexintRead/Write1-based position of this operator within its containing OperatorCollection.

Methods

SignatureDescription
LineTo(x: double, y: double)Creates an l operator that appends a straight line from the current point to (x, y) in user space.
ToPdf()Calls ToPdf on this LineTo instance.
ToString()Calls ToString on this LineTo instance.
Accept(visitor: IOperatorSelector)Calls Accept(visitor) on this LineTo instance.
IsTextShowOperator(op: Operator)True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator).
ValueEquals(op: Operator)True when this operator’s serialised PDF form equals op’s.

See Also

 English