Description
Adds a AreaGroup object to the Page 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]
<% ' 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() ' Create an area group Dim MyGroup Set MyGroup = MyPage.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
Page Object