cete.dynamicpdf.pageelements.rotatingpageelement
RotatingPageElement
- Namespace: ceTe.DynamicPDF.PageElements
- Assemblies: DynamicPDF.CoreSuite.dll
Base class from which rotating page elements are derived.
public abstract class RotatingPageElement : TaggablePageElement, ICoordinate, ISerializable
Public MustInherit Class RotatingPageElement
Inherits TaggablePageElement
Implements ICoordinate, ISerializable
Inheritance: Object → PageElement → TaggablePageElement → RotatingPageElement
Implements: ICoordinate, ISerializable
Derived: LayoutTextArea, AustraliaPost, BarCode, Codabar, Code11, Code128, Code25, Code39, Code93, DeutschePostIdentcode, DeutschePostLeitcode, Ean13, Ean13Sup2, Ean13Sup5, Ean14, Ean8, Ean8Sup2, Ean8Sup5, GS1DataBar, Iata25, IntelligentMailBarCode, Interleaved25, Isbn, IsbnSup2, IsbnSup5, Ismn, IsmnSup2, IsmnSup5, Issn, IssnSup2, IssnSup5, Itf14, Kix, MsiBarcode, Postnet, Rm4scc, SingaporePost, TextBarCode, UpcBase, UpcVersionA, UpcVersionASup2, UpcVersionASup5, UpcVersionE, UpcVersionESup2, UpcVersionESup5, Chart, FormattedTextArea, HtmlArea, Image, Label, List, OrderedList, PageNumberingLabel, Rectangle, Table2, TextArea, UnorderedList
Properties
Angle
Gets or sets the heights of the angle element.
public float Angle { get; set; }
Public Property Angle As Single
Property Value
Height
Gets or sets the heights of the page element.
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);
}
}
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);
}
}
Tag
Gets or sets the tag of the taggable element. (Inherited from TaggablePageElement)
public Tag Tag { get; set; }
Public Property Tag As Tag
Property Value
TagOrder
Gets or sets the tag order of the taggable element. (Inherited from TaggablePageElement)
public int TagOrder { get; set; }
Public Property TagOrder As Int32
Property Value
X
Gets or sets the X coordinate of the page element.
public float X { get; set; }
Public Property X As Single
Property Value
Y
Gets or sets the Y coordinate of the page element.
public float Y { get; set; }
Public Property Y As Single
Property Value
Methods
Draw(PageWriter)
Draws the page element to the given PageWriter object.
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 .