VisFontNameListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Web.Vis.50 (5.0.0.0)
A named Visual Toolchest list box specialization for application-supplied font names.
- C#
- VB.NET
public class VisFontNameListBox : VisListBoxBase
Public Class VisFontNameListBox
Inherits VisListBoxBase
Populate the items explicitly; construction does not enumerate system fonts or populate a default list.
Example:
var fonts = new VisFontNameListBox();
fonts.AddFont("Heading", fontHandle);
Constructors
VisFontNameListBox()
Creates an empty VisFontNameListBox with the extended list behavior supplied by its base class.
Methods
FromHandle(hWnd)
Resolves a SAL handle to an existing VisFontNameListBox.
| Parameter | Type | Description |
|---|---|---|
| hWnd | SalWindowHandle | The control handle to resolve. |
Returns: VisFontNameListBox. 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 | |
| ISalListControl | |
| ISalWindow |