Skip to main content

UniversalTextLineList

Version: 11.0

cete.dynamicpdf.text.universaltextlinelist

UniversalTextLineList​

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 for the text line list.

Start index for the text of the text line list.

Length of the text of the text line list.

Width of the text line list.

Height of the text line list.

Font to use for the text of the text line list.

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​

Boolean

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​

Boolean

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​

Int32

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​

Font

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​

Single

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​

Single

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​

Single

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​

Single

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​

Single

VisibleLineCount​

Gets the number of lines that will be drawn. (Inherited from TextLineList)

public int VisibleLineCount { get; }
Public Property VisibleLineCount As Int32

Property Value​

Int32

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​

Single

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​

OperatorWriter object to receive the link's output.

X coordinate of the text.

Y coordinate of the text.

Alignment of the text.

Color of the text.

Specifies if the text should be underlined.

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​

OperatorWriter object to receive the link's output.

X coordinate of the text.

Y coordinate of the text.

Alignment of the text.

Color of the text.

Specifies if the text should be underlined.

Start line for the text.

Number of lines to draw.

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​

OperatorWriter object to receive the link's output.

X coordinate of the text.

Y coordinate of the text.

Alignment of the text.

Color of the text.

Specifies if the text should be underlined.

Start line for the text.

Number of lines to draw.

Specifies if the text should be drawn right to left.

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​

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​

Start text line index.

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 of the returned text line list.

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​

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​

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​

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 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 .

See Also​

ceTe.DynamicPDF.Text