cete.dynamicpdf.text.textline
TextLine
- Namespace: ceTe.DynamicPDF.Text
- Assemblies: ceTe.DynamicPDF.40.dll
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: Int32
Start index for the text.
- length: Int32
Length of the text.
- mWidth: Int32
MWidth of the text.
- yOffset: Single
Y offset for the line.
- spaceCount: Int32
Number of spaces in the line.
- newParagraph: Boolean
Specifies if the line begins a paragraph.
- hardReturn: Boolean
Specifies if the line ends with a hard return.
- hyphenate: Boolean
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
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
Length
Gets or sets the length of the lines text.
public int Length { get; set; }
Public Property Length As Int32
Property Value
MWidth
Gets or sets the mwidth of the line.
public int MWidth { get; set; }
Public Property MWidth As Int32
Property Value
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
SpaceCount
Gets or sets the space count for the line.
public int SpaceCount { get; set; }
Public Property SpaceCount As Int32
Property Value
Start
Gets or sets the start index of the lines text.
public int Start { get; set; }
Public Property Start As Int32
Property Value
YOffset
Gets or sets the y offset of the line.
public float YOffset { get; set; }
Public Property YOffset As Single
Property Value
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
- obj: Object
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
- fontSize: Single
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 .