Skip to main content

TextLine

Version: 6.0

cete.dynamicpdf.text.textline

TextLine​

Represents a line of text.

public class TextLine
Public Class TextLine

Inheritance: Object → TextLine

Licensing​

This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Generator for .NET Professional Edition
  • DynamicPDF Generator for .NET Enterprise Edition
  • DynamicPDF Merger for .NET Professional Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF ReportWriter for .NET Professional Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

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.

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

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

Length​

Gets or sets the length of the lines text.

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

Property Value​

Int32

MWidth​

Gets or sets the mwidth of the line.

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

Property Value​

Int32

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

SpaceCount​

Gets or sets the space count for the line.

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

Property Value​

Int32

Start​

Gets or sets the start index of the lines text.

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

Property Value​

Int32

YOffset​

Gets or sets the y offset of the line.

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

Property Value​

Single

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.

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 .

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.

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.

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 .

See Also​

ceTe.DynamicPDF.Text