See Also

Page Object

!UNRECOGNISED ELEMENT TYPE 'defaultmemberrequirements'!
Text
Text of the text area.
X
X coordinate of the text area.
Y
Y coordinate of the text area.
Width
Width of the text area.
Height
Height of the text area.
Align
Optional. Specifies how color is applied to the text area.
Font
or the new added font using AddFont method or AddType1Font method.
FontSize
Optional. The font size of the font used in the text area. Default is -1. The DefaultFontSize of the Document object is taken if font size is not specified.
TextColor
Optional. The color of the text used in the text area. A hexadecimal value is used for the color. Default value is an empty string. The DefaultFillColor property value of the Document object is taken if not specified.

Description

Add a TextArea object to the Page and returns a new TextArea object.

Syntax

Public Function AddTextArea( _
   ByVal Text As String, _
   ByVal X As Single, _
   ByVal Y As Single, _
   ByVal Width As Single, _
   ByVal Height As Single, _
   Optional ByVal Align As DPDF_TextAlign = 1, _
   Optional ByVal Font As DPDF_Font = 1, _
   Optional ByVal FontSize As Single = -1, _
   Optional ByVal TextColor As Variant _
) As TextArea

Parameters

Text
Text of the text area.
X
X coordinate of the text area.
Y
Y coordinate of the text area.
Width
Width of the text area.
Height
Height of the text area.
Align
ValueDescription
DPDF_TextAlign_LeftAlign left. (Value = 1)
DPDF_TextAlign_CenterAlign center. (Value = 2)
DPDF_TextAlign_RightAlign right. (Value = 3)
DPDF_TextAlign_JustifyAlign justify. (Value = 4)
DPDF_TextAlign_FullJustifyAlign justify including last line. (Value = 5)
Optional. Specifies how color is applied to the text area.
Font
ValueDescription
DPDF_Font_UseDefaultThe Document's default font is used. (Value = 1)
DPDF_Font_CourierCourier Font (Value = 3)
DPDF_Font_CourierBoldCourier-Bold Font (Value = 4)
DPDF_Font_CourierObliqueCourier-Oblique Font (Value = 5)
DPDF_Font_CourierBoldObliqueCourier-BoldOblique Font (Value = 6)
DPDF_Font_HelveticaHelvetica Font (Value = 7)
DPDF_Font_HelveticaBoldHelvetica-Bold Font (Value = 8)
DPDF_Font_HelveticaObliqueHelvetica-Oblique Font (Value = 9)
DPDF_Font_HelveticaBoldObliqueHelvetica-BoldOblique Font (Value = 10)
DPDF_Font_TimesRomanTimes-Roman Font (Value = 11)
DPDF_Font_TimesBoldTimes-Bold Font (Value = 12)
DPDF_Font_TimesItalicTimes-Italic Font (Value = 13)
DPDF_Font_TimesBoldItalicTimes-BoldItalic Font (Value = 14)
DPDF_Font_SymbolSymbol Font (Value = 15)
DPDF_Font_ZapfDingbatsZapfDingbats Font (Value = 16)
DPDF_Font_HeiseiKakuGothicW5Heisei Kaku Gothic W5 Japanese font (Value = 17)
DPDF_Font_HeiseiMinchoW3Heisei Mincho W3 Japanese font (Value = 18)
DPDF_Font_HanyangSystemsGothicMediumHanyang Systems Gothic Medium Korean font (Value = 19)
DPDF_Font_HanyangSystemsShinMyeongJoMediumHanyang Systems Shin MyeongJo Medium Korean font (Value = 20)
DPDF_Font_SinoTypeSongLightSinoType Song Light Chinese (simplified) font (Value = 21)
DPDF_Font_MonotypeHeiMediumMonotype Hei Medium Chinese (traditional) font (Value = 22)
DPDF_Font_MonotypeSungLightMonotype Sung Light Chinese (traditional) font (Value = 23)
or the new added font using AddFont method or AddType1Font method.
FontSize
Optional. The font size of the font used in the text area. Default is -1. The DefaultFontSize of the Document object is taken if font size is not specified.
TextColor
Optional. The color of the text used in the text area. A hexadecimal value is used for the color. Default value is an empty string. The DefaultFillColor property value of the Document object is taken if not specified.

Return Type

A TextArea object.

Example

[ASP - VBScript] 

<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> 
<% 
    Dim MyDocument 
    Dim MyPage 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) 
    Set MyPage = MyDocument.AddPage() 
    Dim MyTextArea 
    Set MyTextArea = MyPage.AddTextArea( "ceTe Software", 200, 250, 200, 40, DPDF_Align_Center, DPDF_Font_TimesBold, 24, "483D8B" ) 
    MyTextArea.Angle = 45 
    MyDocument.DrawToWeb 
    Set MyPage = Nothing 
    Set MyDocument = Nothing 
%> 

See Also

Page Object

 

 


© Copyright 2007, ceTe Software