cete.dynamicpdf.pageelements.anchorgroup
AnchorGroup
- Namespace: ceTe.DynamicPDF.PageElements
- Assemblies: ceTe.DynamicPDF.40.dll
Represents a group of elements that will be anchored.
public class AnchorGroup : Group, IEnumerable, IPageElementContainer, ISerializable
Public Class AnchorGroup
Inherits Group
Implements IEnumerable, IPageElementContainer, ISerializable
Inheritance: Object → PageElement → Group → AnchorGroup
Implements: IEnumerable, IPageElementContainer, ISerializable
Licensing
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Professional Edition
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Professional Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Constructors
AnchorGroup(Single, Single, Align, VAlign)
Initializes a new instance of the AnchorGroup class.
public AnchorGroup(float width, float height, Align align, VAlign vAlign)
Public Sub New (width As Single, height As Single, align As Align, vAlign As VAlign)
Parameters
- width: Single
Width of the anchor group.
- height: Single
Height of the anchor group.
- align: Align
Alignment of the anchor group.
- vAlign: VAlign
Vertical Alignment of the anchor group.
Properties
Align
Gets or sets the alignment of the anchor group.
public Align Align { get; set; }
Public Property Align As Align
Property Value
AnchorTo
Gets or sets the AnchorTo object to use for the anchor group.
public AnchorTo AnchorTo { get; set; }
Public Property AnchorTo As AnchorTo
Property Value
Count
Gets the number of page elements in the group. (Inherited from Group)
public int Count { get; }
Public Property Count As Int32
Property Value
Height
Gets or sets the height of the anchor group.
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
Item[Int32]
Gets the PageElement object at the given index. (Inherited from Group)
public PageElement this[int index] { get; }
Public Property Item(index As Integer) As PageElement
Property Value
Item[String]
Gets the PageElement object with the given ID. (Inherited from Group)
public PageElement this[string id] { get; }
Public Property Item(id As String) As PageElement
Property Value
VAlign
Gets or sets the vertical alignment of the anchor group.
public VAlign VAlign { get; set; }
Public Property VAlign As VAlign
Property Value
Width
Gets or sets the width of the anchor group.
public float Width { get; set; }
Public Property Width As Single
Property Value
Methods
Add(PageElement)
Adds a page element to the group. (Inherited from Group)
public void Add(PageElement pageElement)
Sub Add(pageElement As PageElement)
Parameters
- pageElement: PageElement
PageElement object to add to the group.
Draw(PageWriter)
Draws the anchor group to the given PageWriter object.
public void Draw(PageWriter writer)
Sub Draw(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the anchor group'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.
GetEnumerator()
Returns an enumerator that can iterate through the Group . (Inherited from Group)
public IEnumerator GetEnumerator()
Function GetEnumerator() As IEnumerator
Returns
An IEnumerator for the entire Group
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 .
GetPageElementByID(String)
Returns a page element with the given ID. (Inherited from Group)
public PageElement GetPageElementByID(string id)
Function GetPageElementByID(id As String) As PageElement
Parameters
- id: String
ID of the page element to find.
Returns
PageElement with the given ID.
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.
Insert(Int32, PageElement)
Inserts a page element to the group. (Inherited from Group)
public void Insert(int index, PageElement pageElement)
Sub Insert(index As Integer, pageElement As PageElement)
Parameters
- index: Int32
The Zero-based index it which the page element should be inserted.
- pageElement: PageElement
PageElement object to insert in the group.
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 .