VisFontNameComboBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Web.Vis.50 (5.0.0.0)
A named Visual Toolchest combo box specialization for application-supplied font names.
- C#
- VB.NET
public class VisFontNameComboBox : VisComboBoxBase
Public Class VisFontNameComboBox
Inherits VisComboBoxBase
Populate the items explicitly; construction does not enumerate system fonts or populate a default list.
Example:
var fonts = new VisFontNameComboBox();
fonts.AddFont("Heading", fontHandle);
Constructors
VisFontNameComboBox()
Creates an empty VisFontNameComboBox with the extended list behavior supplied by its base class.
Methods
FromHandle(hWnd)
Resolves a SAL handle to an existing VisFontNameComboBox.
| Parameter | Type | Description |
|---|---|---|
| hWnd | SalWindowHandle | The control handle to resolve. |
Returns: VisFontNameComboBox. The associated control, or when no control is resolved.
Throws:
- InvalidCastException The handle identifies an incompatible control type.
GetSelectedFont(sFontName, nFontType)
Reports that retrieval of the selected font description is not implemented on the Web platform.
| Parameter | Type | Description |
|---|---|---|
| sFontName | SalString | Font-name output; left unchanged. |
| nFontType | SalNumber | Font-type output; left unchanged. |
Returns: SalBoolean. Always .
Populate(nGetFlag)
Reports that automatic font-name enumeration is not implemented on the Web platform.
| Parameter | Type | Description |
|---|---|---|
| nGetFlag | SalNumber | Requested font categories; ignored. |
Returns: SalNumber. Always zero. The existing items are unchanged.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalEditControl | |
| ISalListControl | |
| ISalWindow |