Description

Adds a Cell object to the current Row object and returns a New Cell object.

Syntax

Public Function AddCell( _
   Optional ByVal Text As String = "", _
   Optional ByVal Font As DPDF_Font = 7, _
   Optional ByVal FontSize As Single = -1, _
   Optional ByVal TextColor As String = "", _
   Optional ByVal BackgroundColor As String = "", _
   Optional ByVal ColSpan As Long = 1 _
) As Cell

Parameters

Text

Text to be displayed in the cell.

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 text used in the Cell. Default value is -1. The Row FontSize property value is taken if font size is not specified.
TextColor
Optional. The Color of the text used in the Cell. A Hexadecimal value is used for the Color. Default value is empty string. If not specified, drawn with Row TextColor.
BackgroundColor
Optional. The BackgroundColor of the Cell. A Hexadecimal value is used for the Color. Default value is empty string. If not specified, drawn with Row BackGroundColor.
ColSpan

Optional. Number of columns for the cell will span. Default Value is 1.

Return Type

A Cell object.

See Also

Row Object