Description
Adds a child AreaGroup object to the AreaGroup object 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 Area Group
- Height
- Height of the Area Group
Return Type
A AreaGroup object.
Example
[ASP - VBScript]
<% Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) ' Create a Page and add it to the document Dim MyPage Set MyPage = MyDocument.AddPage() ' Create a Area group Dim MyAreaGroup Dim MyGroup Set MyAreaGroup = MyPage.AddAreaGroup( 400, 300 ) ' Create a Group ad Add the Group to the Area Group Set MyGroup = MyAreaGroup.AddAreaGroup( 200, 200 ) ' 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
AreaGroup Object