VisFontNameComboBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)
Lists installed font names in a combo box.
- C#
- VB.NET
public class VisFontNameComboBox : VisComboBoxBase
Public Class VisFontNameComboBox
Inherits VisComboBoxBase
Example:
using (var list = new PPJ.Runtime.Vis.VisFontNameComboBox())
{
list.Populate(PPJ.Runtime.Vis.Vis.FONTTYPE_TrueType);
}
Constructors
VisFontNameComboBox()
Initializes the font name combo box and its default behavior.
Methods
FromHandle(handle)
Resolves this control type from a native window handle.
| Parameter | Type | Description |
|---|---|---|
| handle | SalWindowHandle | The native control handle. |
Returns: VisFontNameComboBox. The associated VisFontNameComboBox, or null when no managed control owns the handle.
A handle belonging to a different managed control type causes an InvalidCastException.
GetSelectedFont(fontName, fontType)
Gets the selected font name and the compatibility font-type value.
| Parameter | Type | Description |
|---|---|---|
| fontName | SalString | Receives the selected item text; unchanged when no item is selected. |
| fontType | SalNumber | Receives FONTTYPE_TrueType; unchanged when no item is selected. |
Returns: SalBoolean. True when an item is selected; otherwise, false.
The reported type is always FONTTYPE_TrueType and is not detected from the font.
Populate(fontType)
Replaces the list with all installed font names.
| Parameter | Type | Description |
|---|---|---|
| fontType | SalNumber | Reserved for compatibility; this implementation does not filter by font type. |
Returns: SalNumber. The number of installed font names added.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalEditControl | |
| ISalListControl | |
| ISalWindow |