cete.dynamicpdf.text.universaltextlinelist
UniversalTextLineList
- Namespace: ceTe.DynamicPDF.Text
- Assemblies: DynamicPDF.CoreSuite.dll
Represents a universal text line list.
public class UniversalTextLineList : TextLineList
Public Class UniversalTextLineList
Inherits TextLineList
Inheritance: Object → TextLineList → UniversalTextLineList
Constructors
UniversalTextLineList(Char[], Int32, Int32, Single, Single, Font, Single)
Initializes a new instance of the UniversalTextLineList class.
public UniversalTextLineList(Char[] text, int start, int length, float width, float height, Font font, float fontSize)
Public Sub New (text As Char[], start As Integer, length As Integer, width As Single, height As Single, font As Font, fontSize As Single)
Parameters
- text: Char[]
Text for the text line list.
- start: Int32
Start index for the text of the text line list.
- length: Int32
Length of the text of the text line list.
- width: Single
Width of the text line list.
- height: Single
Height of the text line list.
- font: Font
Font to use for the text of the text line list.
- fontSize: Single
Font size to use for the text of the text line list.
Properties
AutoLeading
Gets or sets whether the leading of the text line list should be calculated automatically. (Inherited from TextLineList)
public bool AutoLeading { get; set; }
Public Property AutoLeading As Boolean
Property Value
Remarks
This property is automatically set to false any time the Leading property is set.
CleanParagraphBreaks
Gets or sets if the text line list should have clean paragraph breaks. (Inherited from TextLineList)
public bool CleanParagraphBreaks { get; set; }
Public Property CleanParagraphBreaks As Boolean
Property Value
Count
Gets the number of lines in the text line list. (Inherited from TextLineList)
public int Count { get; }
Public Property Count As Int32
Property Value
Font
Gets or sets the font of the text line list. (Inherited from TextLineList)
public Font Font { get; set; }
Public Property Font As Font
Property Value
FontSize
Gets or sets the font size of the text line list. (Inherited from TextLineList)
public float FontSize { get; set; }
Public Property FontSize As Single
Property Value
Height
Gets or sets the height of the text line list. (Inherited from TextLineList)
public float Height { get; set; }
Public Property Height As Single
Property Value
Leading
Gets or sets the leading of the text line list. (Inherited from TextLineList)
public float Leading { get; set; }
Public Property Leading As Single
Property Value
Remarks
Setting this property will automatically set the AutoLeading property to false.
ParagraphIndent
Gets or sets the paragraph indention of the text line list. (Inherited from TextLineList)
public float ParagraphIndent { get; set; }
Public Property ParagraphIndent As Single
Property Value
ParagraphSpacing
Gets or sets the paragraph spacing of the text line list. (Inherited from TextLineList)
public float ParagraphSpacing { get; set; }
Public Property ParagraphSpacing As Single
Property Value
VisibleLineCount
Gets the number of lines that will be drawn. (Inherited from TextLineList)
public int VisibleLineCount { get; }
Public Property VisibleLineCount As Int32
Property Value
Width
Gets or set the width of the text line list. (Inherited from TextLineList)
public float Width { get; set; }
Public Property Width As Single
Property Value
Methods
Draw(OperatorWriter, Single, Single, TextAlign, Color, Boolean, Boolean)
Draws the text line list to the given PageWriter object. (Inherited from TextLineList)
public void Draw(OperatorWriter writer, float x, float y, TextAlign align, Color textColor, bool underline, bool rightToLeft)
Sub Draw(writer As OperatorWriter, x As Single, y As Single, align As TextAlign, textColor As Color, underline As Boolean, rightToLeft As Boolean)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the link's output.
- x: Single
X coordinate of the text.
- y: Single
Y coordinate of the text.
- align: TextAlign
Alignment of the text.
- textColor: Color
Color of the text.
- underline: Boolean
Specifies if the text should be underlined.
- rightToLeft: Boolean
Specifies if the text should be drawn right to left.
Draw(OperatorWriter, Single, Single, TextAlign, Color, Boolean, Int32, Int32, Boolean)
Draws the text line list to the given PageWriter object. (Inherited from TextLineList)
public void Draw(OperatorWriter writer, float x, float y, TextAlign align, Color textColor, bool underline, int startLine, int lineCount, bool rightToLeft)
Sub Draw(writer As OperatorWriter, x As Single, y As Single, align As TextAlign, textColor As Color, underline As Boolean, startLine As Integer, lineCount As Integer, rightToLeft As Boolean)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the link's output.
- x: Single
X coordinate of the text.
- y: Single
Y coordinate of the text.
- align: TextAlign
Alignment of the text.
- textColor: Color
Color of the text.
- underline: Boolean
Specifies if the text should be underlined.
- startLine: Int32
Start line for the text.
- lineCount: Int32
Number of lines to draw.
- rightToLeft: Boolean
Specifies if the text should be drawn right to left.
Draw(OperatorWriter, Single, Single, TextAlign, Color, Boolean, Int32, Int32, Boolean, Boolean)
Draws the text line list to the given PageWriter object. (Inherited from TextLineList)
public void Draw(OperatorWriter writer, float x, float y, TextAlign align, Color textColor, bool underline, int startLine, int lineCount, bool rightToLeft, bool strikeThrough)
Sub Draw(writer As OperatorWriter, x As Single, y As Single, align As TextAlign, textColor As Color, underline As Boolean, startLine As Integer, lineCount As Integer, rightToLeft As Boolean, strikeThrough As Boolean)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the link's output.
- x: Single
X coordinate of the text.
- y: Single
Y coordinate of the text.
- align: TextAlign
Alignment of the text.
- textColor: Color
Color of the text.
- underline: Boolean
Specifies if the text should be underlined.
- startLine: Int32
Start line for the text.
- lineCount: Int32
Number of lines to draw.
- rightToLeft: Boolean
Specifies if the text should be drawn right to left.
- strikeThrough: Boolean
Specifies if the text should be StrikeThrough.
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 .
GetLineCount(Int32, Single)
Returns the number of lines that will draw for the given height. (Inherited from TextLineList)
public int GetLineCount(int startLine, float height)
Function GetLineCount(startLine As Integer, height As Single) As Integer
Parameters
- startLine: Int32
Start text line index.
- height: Single
Height used for the calculation.
Returns
the number of lines that will be drawn.
GetMaximumWidth()
Get the maximum width of text in the line list. (Inherited from TextLineList)
public float GetMaximumWidth()
Function GetMaximumWidth() As Single
Returns
GetOverflow(Single, Single)
Returns the overflow lines for the text line list.
public TextLineList GetOverflow(float width, float height)
Function GetOverflow(width As Single, height As Single) As TextLineList
Parameters
- width: Single
Width of the returned text line list.
- height: Single
Height of the returned text line list.
Returns
A TextLineList containing the overflow lines.
GetOverflowText()
Returns the overflow text of the text line list.
public string GetOverflowText()
Function GetOverflowText() As String
Returns
Overflow text of the line list.
GetRequiredHeight(Int32)
Returns the required height for the all the text to display. (Inherited from TextLineList)
public float GetRequiredHeight(int startLine)
Function GetRequiredHeight(startLine As Integer) As Single
Parameters
- startLine: Int32
Start text line index.
Returns
The required height of the text.
GetText()
returns the text of the text line list. (Inherited from TextLineList)
public string GetText()
Function GetText() As String
Returns
Text of the text line list.
GetTextHeight()
Returns the height of the visible text. (Inherited from TextLineList)
public float GetTextHeight()
Function GetTextHeight() As Single
Returns
The height of the text.
GetTextHeight(Int32)
Returns the height of the visible text. (Inherited from TextLineList)
public float GetTextHeight(int lineCount)
Function GetTextHeight(lineCount As Integer) As Single
Parameters
- lineCount: Int32
Number of lines to use for the calculation.
Returns
The height of the text.
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.
HasOverflow()
Returns a value indicating if the text line list has overflow lines.
public bool HasOverflow()
Function HasOverflow() As Boolean
Returns
A value indicating if the line list has overflow text.
SetText(Char[])
Sets the text of the text line list to a new value. (Inherited from TextLineList)
public void SetText(Char[] text)
Sub SetText(text As Char[])
Parameters
- text: Char[]
Character array to set as the text of the text line list.
SetText(String)
Sets the text of the text line list to a new value. (Inherited from TextLineList)
public void SetText(string text)
Sub SetText(text As String)
Parameters
- text: String
Text to set as the text of the text line list.
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 .