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 CellParameters
- Text
Text to be displayed in the cell.
- Font
or the new added font using AddFont method or AddType1Font method.Value Description DPDF_Font_UseDefault The Document's default font is used. (Value = 1) DPDF_Font_Courier Courier Font (Value = 3) DPDF_Font_CourierBold Courier-Bold Font (Value = 4) DPDF_Font_CourierOblique Courier-Oblique Font( Value = 5) DPDF_Font_CourierBoldOblique Courier-BoldOblique Font (Value = 6) DPDF_Font_Helvetica Helvetica Font (Value = 7) DPDF_Font_HelveticaBold Helvetica-Bold Font (Value = 8) DPDF_Font_HelveticaOblique Helvetica-Oblique Font (Value = 9) DPDF_Font_HelveticaBoldOblique Helvetica-BoldOblique Font (Value = 10) DPDF_Font_TimesRoman Times-Roman Font (Value = 11) DPDF_Font_TimesBold Times-Bold Font (Value = 12) DPDF_Font_TimesItalic Times-Italic Font (Value = 13) DPDF_Font_TimesBoldItalic Times-BoldItalic Font (Value = 14) DPDF_Font_Symbol Symbol Font (Value = 15) DPDF_Font_ZapfDingbats ZapfDingbats Font (Value = 16) DPDF_Font_HeiseiKakuGothicW5 Heisei Kaku Gothic W5 Japanese font (Value = 17) DPDF_Font_HeiseiMinchoW3 Heisei Mincho W3 Japanese font (Value = 18) DPDF_Font_HanyangSystemsGothicMedium Hanyang Systems Gothic Medium Korean font (Value = 19) DPDF_Font_HanyangSystemsShinMyeongJoMedium Hanyang Systems Shin MyeongJo Medium Korean font (Value = 20) DPDF_Font_SinoTypeSongLight SinoType Song Light Chinese (simplified) font (Value = 21) DPDF_Font_MonotypeHeiMedium Monotype Hei Medium Chinese (traditional) font (Value = 22) DPDF_Font_MonotypeSungLight Monotype Sung Light Chinese (traditional) font (Value = 23) - 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.

