See Also

TransformationGroup Members  | ceTe.DynamicPDF.PageElements Namespace

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Represents a group of page elements to transform.

For a list of all members of this type, see TransformationGroup members.

Object Model

Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.Group
         ceTe.DynamicPDF.PageElements.TransformationGroup

Syntax

[Visual Basic]
Public Class TransformationGroup    Inherits Group    Implements IAreaICoordinateIPageElementContainer 
[C#]
public class TransformationGroup : Group, IAreaICoordinateIPageElementContainer 

Remarks

This class can be used to transform entire groups of page elements. Any page element that is placed in this group will be displayed with the transformation values and attributes of this group.

Example

The following example will display an image and some text that has been rotated and horizontally scaled as a group.

[Visual Basic] 

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule

    Sub Main()

        ' Create a PDF Document
        Dim MyDocument As Document = New Document

        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create a transformation group and add a rectangle and a label to it
        Dim MyGroup As TransformationGroup = New TransformationGroup(100, 100, _
            200, 200, 30)
        MyGroup.Add(New Rectangle(0, 0, 75, 75, RgbColor.Blue, RgbColor.Blue))
        MyGroup.Add(New Label("This text is inside a TransformationGroup.", 0, _
            100, 300, 12))

        ' Vertically scale the group
        MyGroup.ScaleY = 2

        ' Add the transformation group to the page
        MyPage.Elements.Add(MyGroup)

        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")

    End Sub
End Module

[C#] 

using System; 
using ceTe.DynamicPDF; 
using ceTe.DynamicPDF.PageElements; 
 
class MyClass 

    static void Main() 
    { 
        // 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 a transformation group and add a rectangle and label to it 
        TransformationGroup group = new TransformationGroup( 100, 100, 200,  
            200, 30 ); 
        group.Add( new Rectangle( 0, 0, 75, 75, RgbColor.Blue, RgbColor.Blue ) ); 
        group.Add( new Label( "This text is inside a TransformationGroup.",  
            0, 100, 300, 12 ) ); 
 
        // Vertically scale the group 
        group.ScaleY = 2; 
 
        // Add the transformation group to the page 
        page.Elements.Add( group ); 
 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

TransformationGroup Members  | ceTe.DynamicPDF.PageElements Namespace

 

 


© Copyright 2006, ceTe Software