Skip to main content

TextLine

Version: 12.0

cete.dynamicpdf.text.textline

TextLine​

Represents a line of text.

public class TextLine
Public Class TextLine

Inheritance: Object → TextLine

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Constructors​

TextLine(Int32, Int32, Int32, Single, Int32, Boolean, Boolean, Boolean)​

Initializes a new instance of the TextLine class.

public TextLine(int start, int length, int mWidth, float yOffset, int spaceCount, bool newParagraph, bool hardReturn, bool hyphenate)
Public Sub New (start As Integer, length As Integer, mWidth As Integer, yOffset As Single, spaceCount As Integer, newParagraph As Boolean, hardReturn As Boolean, hyphenate As Boolean)

Parameters​

Start index for the text.

Length of the text.

MWidth of the text.

Y offset for the line.

Number of spaces in the line.

Specifies if the line begins a paragraph.

Specifies if the line ends with a hard return.

Specifies if the line ends with a hyphenation.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Properties​

HardReturn​

Gets or sets a value indicating if the line ends with a hard return.

public bool HardReturn { get; set; }
Public Property HardReturn As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Hyphenate​

Gets or sets a value indicating if the line is to be hyphenated.

public bool Hyphenate { get; set; }
Public Property Hyphenate As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Length​

Gets or sets the length of the lines text.

public int Length { get; set; }
Public Property Length As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

MWidth​

Gets or sets the mwidth of the line.

public int MWidth { get; set; }
Public Property MWidth As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

NewParagraph​

Gets or sets a value indicating if the line begins a paragraph.

public bool NewParagraph { get; set; }
Public Property NewParagraph As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

SpaceCount​

Gets or sets the space count for the line.

public int SpaceCount { get; set; }
Public Property SpaceCount As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Start​

Gets or sets the start index of the lines text.

public int Start { get; set; }
Public Property Start As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

YOffset​

Gets or sets the y offset of the line.

public float YOffset { get; set; }
Public Property YOffset As Single

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetWidth(Single)​

Returns the width of the line's text in points.

public float GetWidth(float fontSize)
Function GetWidth(fontSize As Single) As Single

Parameters​

Font size to use for the width.

Returns​

the width of the lines text.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Text