Description
Adds a Label object to the Page and returns a new Label object.
Syntax
Public Function AddLabel( _
ByVal Text As String, _
ByVal X As Single, _
ByVal Y As Single, _
ByVal Width As Single, _
ByVal Height As Single _
) As Label
Parameters
- Text
- Text for the label.
- X
- X coordinate of the label.
- Y
- Y coordinate of the label.
- Width
- Width of the label.
- Height
- Height of the label.
Return Type
A Label object.
Example
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) Dim MyPage Set MyPage = MyDocument.AddPage() Dim MyLabel Set MyLabel = MyPage.AddLabel( "Hello World!", 0, 0, 100, 12 ) MyLabel.Font = DPDF_Font_Helvetica MyLabel.FontSize = 12 MyDocument.DrawToWeb True Set MyPage = Nothing Set MyDocument = Nothing %>
|
See Also
Page Object
© Copyright 2007, ceTe Software