|
|
|
SftBoxItems.AddFontSizes Method |
Adds a list of available font sizes.
Syntax
VB.NET |
Count = object.AddFontSizes(ByVal FontName As String, ByVal hDCPrinter As Integer) As Integer |
||
VB |
Count = object.AddFontSizes(ByVal FontName As String, ByVal hDCPrinter As Long) As Long |
||
C#.NET |
int Count = object.AddFontSizes(string FontName, int hDCPrinter); |
||
VC++ |
long Count = object->AddFontSizes(_bstr_t FontName, long hDCPrinter); |
||
C |
HRESULT object->raw_AddFontSizes(BSTR FontName, long hDCPrinter, long* Count); |
||
Delphi |
Count := object.AddFontSizes(FontName : WideString; hDCPrinter : Integer) : Integer; |
object
A SftBoxItems object.
FontName
The name of the font whose font sizes are to be added to the control.
hDCPrinter
Specify a valid printer device context handle if the font FontName is a printer font. Specify 0 for screen fonts.
Count
Returns the number of font sizes added to the control.
Comments
The AddFontSizes method adds a list of available font sizes.
The AddFontSizes method adds all available font sizes (in points) of the font FontName to the combo box as items. The combo box is cleared first.
Font sizes are added in ascending order.
The Cell.Data property of the cell in column 0 of each item will contain the font size, which could be used for sorting purposes.
The drop down portion is automatically hidden when the combo box contents are changed using this method. The DropDown.SuppressOn method can be used to suppress hiding the drop down portion when adding/inserting items.