cete.dynamicpdf.text.textlinelist
TextLineList
- Namespace: ceTe.DynamicPDF.Text
- Assemblies: DynamicPDF.CoreSuite.dll
Represents a list of text lines.
public abstract class TextLineList
Public MustInherit Class TextLineList
Inheritance: Object → TextLineList
Derived: LatinTextLineList, UniversalTextLineList
Properties
AutoLeading
Gets or sets whether the leading of the text line list should be calculated automatically.
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.
public bool CleanParagraphBreaks { get; set; }
Public Property CleanParagraphBreaks As Boolean
Property Value
Count
Gets the number of lines in the text line list.
public int Count { get; }
Public Property Count As Int32
Property Value
Font
Gets or sets the font of the text line list.
public Font Font { get; set; }
Public Property Font As Font
Property Value
FontSize
Gets or sets the font size of the text line list.
public float FontSize { get; set; }
Public Property FontSize As Single
Property Value
Height
Gets or sets the height of the text line list.
public float Height { get; set; }
Public Property Height As Single
Property Value
Leading
Gets or sets the leading of the text line list.
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.
public float ParagraphIndent { get; set; }
Public Property ParagraphIndent As Single
Property Value
ParagraphSpacing
Gets or sets the paragraph spacing of the text line list.
public float ParagraphSpacing { get; set; }
Public Property ParagraphSpacing As Single
Property Value
VisibleLineCount
Gets the number of lines that will be drawn.
public int VisibleLineCount { get; }
Public Property VisibleLineCount As Int32
Property Value
Width
Gets or set the width of the text line list.
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.
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.
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.
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.
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.
public float GetMaximumWidth()
Function GetMaximumWidth() As Single
Returns
GetOverflow(Single, Single)
Returns an overflow TextLineList .
public abstract TextLineList GetOverflow(float width, float height)
MustOverride Function GetOverflow(width As Single, height As Single) As TextLineList
Parameters
- width: Single
Width of the overflow text line list.
- height: Single
Height of the overflow text line list.
Returns
A TextLineList containing the overflowed lines.
GetOverflowText()
Returns the overflow text of the text line list.
public abstract string GetOverflowText()
MustOverride Function GetOverflowText() As String
Returns
The overflow text.
GetRequiredHeight(Int32)
Returns the required height for the all the text to display.
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.
public string GetText()
Function GetText() As String
Returns
Text of the text line list.
GetTextHeight()
Returns the height of the visible text.
public float GetTextHeight()
Function GetTextHeight() As Single
Returns
The height of the text.
GetTextHeight(Int32)
Returns the height of the visible text.
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 abstract bool HasOverflow()
MustOverride Function HasOverflow() As Boolean
Returns
A value indicating if overflow lines exist.
SetText(Char[])
Sets the text of the text line list to a new value.
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.
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 .