See Also

PdfFormField Object

!UNRECOGNISED ELEMENT TYPE 'defaultmemberrequirements'!
Page
Page to which the label will be added.
Text
Text of the label.
Font
or the new added font using AddFont method or AddType1Font method.
FontSize
Optional. The font size of the font used in the text. Default is -1. The DefaultFontSize of the Document object is taken if font size is not specified.
Align
Text alignment of the label.
XOffset
X coordinate offset for the label.
YOffset
Y coordinate offset for the label.

Description

Creates a Label object and adds it to the given page at the coordinates of the form field.

Syntax

Public Function CreateLabel( _
   ByVal Page As Variant, _
   ByVal Text As String, _
   ByVal Font As DPDF_Font, _
   ByVal FontSize As Single, _
   Optional ByVal Align As DPDF_TextAlign = 1, _
   Optional ByVal XOffset As Single = 0, _
   Optional ByVal YOffset As Single = 0 _
) As Label

Parameters

Page
Page to which the label will be added.
Text
Text of the label.
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. Default is -1. The DefaultFontSize of the Document object is taken if font size is not specified.
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)
Text alignment of the label.
XOffset
X coordinate offset for the label.
YOffset
Y coordinate offset for the label.

Return Type

A Label object

See Also

PdfFormField Object

 

 


© Copyright 2007, ceTe Software