Description

Adds a AreaGroup object to the TransformationGroup and returns a New AreaGroup object.

Syntax

Public Function AddAreaGroup( _
   ByVal Width As Single, _
   ByVal Height As Single _
) As AreaGroup

Parameters

Width
Width of the AreaGroup.
Height
Height of the AreaGroup.

Return Type

A AreaGroup object.

Example

[ASP - VBScript] 

<% 
    ' Create a PDF Document 
    Dim MyDocument 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )  
    ' Create a Page and add it to the document 
    Dim MyPage  
    Set MyPage = MyDocument.AddPage() 
    Dim MyMainGroup 
    Set MyMainGroup = MyPage.AddTransformationGroup( 100, 100, 300, 300 ) 
    ' Create an area group to which elements will be added 
    Dim MyGroup 
    Set MyGroup = MyMainGroup.AddAreaGroup( 300, 300 ) 
    ' Add page elements to the group  
    MyGroup.AddRectangle 0, 0, 200, 200, 3 
    MyGroup.AddLine 0, 100, 100, 0, 3 
    MyGroup.AddLine 100, 0, 200, 100, 3 
    MyGroup.AddLine 200, 100, 100, 200, 3 
    MyGroup.AddLine 100, 200, 0, 100, 3 
    ' Draw the PDF 
    MyDocument.DrawToWeb 
    Set MyPage = Nothing 
    Set MyDocument = Nothing 
%> 
 

See Also

TransformationGroup Object