cete.dynamicpdf.pageelements.list
List
- Namespace: ceTe.DynamicPDF.PageElements
- Assemblies: DynamicPDF.CoreSuite.dll
Represents the List.
public class List : RotatingPageElement, IArea, ICoordinate, ISerializable
Public Class List
Inherits RotatingPageElement
Implements IArea, ICoordinate, ISerializable
Inheritance: Object → PageElement → TaggablePageElement → RotatingPageElement → List
Implements: IArea, ICoordinate, ISerializable
Derived: OrderedList, UnorderedList
Remarks
See the Lists topic for more on lists.
Properties
Angle
Gets or sets the heights of the angle element. (Inherited from RotatingPageElement)
public float Angle { get; set; }
Public Property Angle As Single
Property Value
BulletAlign
Gets or sets the Align enumeration that specifies the Bullet alignment of the List.
public Align BulletAlign { get; set; }
Public Property BulletAlign As Align
Property Value
BulletAreaWidth
Gets or sets the Width in which bullets will be drawn, for each ListItem of the List.
public float BulletAreaWidth { get; set; }
Public Property BulletAreaWidth As Single
Property Value
BulletSize
Gets or Sets the bullet's size for the List .
public float BulletSize { get; set; }
Public Property BulletSize As Single
Property Value
Font
Gets or sets the Font of the text for the List.
public Font Font { get; set; }
Public Property Font As Font
Property Value
FontSize
Gets or Sets the Font size of the List.
public float FontSize { get; set; }
Public Property FontSize As Single
Property Value
Height
Gets or sets the Height of the List.
public float Height { get; set; }
Public Property Height As Single
Property Value
ID
Gets or sets the ID of the page element. (Inherited from PageElement)
public string ID { get; set; }
Public Property ID As String
Property Value
IgnoreMargins
Gets or sets ignore margin property. Setting false will consider the margin while placing the page element based on the RelativeTo property. (Inherited from PageElement)
public bool IgnoreMargins { get; set; }
Public Property IgnoreMargins As Boolean
Property Value
Examples
The following example will place the Label in the top-left of the page with IgnoreMargin
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page); // Create an Label and place it in page top left with margin ignored
Label label = new Label("I am placed in Page top left with margin ignored", 0, 0, 160, 30);
label.RelativeTo = RelativeTo.TopLeft;
label.IgnoreMargin=true; page.Elements.Add(label);
// Save the PDF
document.Draw(outputPath);
}
}
Items
Gets the ListItemLists of the List.
public ListItemList Items { get; }
Public Property Items As ListItemList
Property Value
Leading
Gets or Sets the leading for the text of the List.
public float Leading { get; set; }
Public Property Leading As Single
Property Value
LeftIndent
Gets or Sets the LeftIndent of the whole List. Each ListItem may have his own LeftIndent.
public float LeftIndent { get; set; }
Public Property LeftIndent As Single
Property Value
ListItemBottomMargin
Gets or Sets the BottomMargin of the ListItems in the List.
public float ListItemBottomMargin { get; set; }
Public Property ListItemBottomMargin As Single
Property Value
ListItemTopMargin
Gets or Sets the TopMargin of the ListItems in the List.
public float ListItemTopMargin { get; set; }
Public Property ListItemTopMargin As Single
Property Value
ParagraphIndent
Gets or Sets the paragraphIndent of the List.
public float ParagraphIndent { get; set; }
Public Property ParagraphIndent As Single
Property Value
RelativeTo
Gets and sets placement of the page element on the page. (Inherited from PageElement)
public RelativeTo RelativeTo { get; set; }
Public Property RelativeTo As RelativeTo
Property Value
Examples
The following example will place the Label in the top-left of the page.
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page); // Create an Label and place it in page top left with margin
Label label = new Label("I am placed in Page top left with margin.", 0, 0, 160, 30);
label.RelativeTo = RelativeTo.TopLeft;
page.Elements.Add(label);
// Save the PDF
document.Draw(outputPath);
}
}
RightIndent
Gets or Sets the RightIndent of the whole List. Each ListItem may have his own RightIndent.
public float RightIndent { get; set; }
Public Property RightIndent As Single
Property Value
RightToLeft
Gets or Sets a value indicating if the Text is in RighttoLeft language.
public bool RightToLeft { get; set; }
Public Property RightToLeft As Boolean
Property Value
StrikeThrough
Gets or Sets the text of each ListItem of the List as StrikeThrough.
public bool StrikeThrough { get; set; }
Public Property StrikeThrough As Boolean
Property Value
Tag
Gets or sets the tag of the taggable element.
public Tag Tag { get; set; }
Public Property Tag As Tag
Property Value
TagOrder
Gets or sets the tag order of the taggable element.
public int TagOrder { get; set; }
Public Property TagOrder As Int32
Property Value
TextAlign
Gets or sets the TextAlign enumeration that specifies the text alignment of the List.
public TextAlign TextAlign { get; set; }
Public Property TextAlign As TextAlign
Property Value
TextColor
Gets or sets the Color of the Text for whole List.
public Color TextColor { get; set; }
Public Property TextColor As Color
Property Value
TextOutlineColor
Gets or sets the Color of the text outline for whole List.
public Color TextOutlineColor { get; set; }
Public Property TextOutlineColor As Color
Property Value
Remarks
Unordered list bullets do not have text outline.
TextOutlineWidth
Gets or sets the line width to use for the text outline of the list.
public float TextOutlineWidth { get; set; }
Public Property TextOutlineWidth As Single
Property Value
Remarks
Unordered list bullets do not have text outline.
Width
Gets or sets the Width of the List.
public float Width { get; set; }
Public Property Width As Single
Property Value
X
Gets or sets the X coordinate of the page element. (Inherited from RotatingPageElement)
public float X { get; set; }
Public Property X As Single
Property Value
Y
Gets or sets the Y coordinate of the page element. (Inherited from RotatingPageElement)
public float Y { get; set; }
Public Property Y As Single
Property Value
Methods
Draw(PageWriter)
Draws the page element to the given PageWriter object. (Inherited from RotatingPageElement)
public void Draw(PageWriter writer)
Sub Draw(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the page element's output.
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.
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 .