Skip to main content
Version: 2025

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.

public class VisFontNameListBox : 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

Instance member VisFontNameListBox()

Creates an empty VisFontNameListBox with the extended list behavior supplied by its base class.

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisFontNameListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

Returns: VisFontNameListBox. The associated control, or when no control is resolved.

Throws:

Instance member GetSelectedFont(sFontName, nFontType)

Reports that retrieval of the selected font description is not implemented on the Web platform.

ParameterTypeDescription
sFontName by referenceSalStringFont-name output; left unchanged.
nFontType by referenceSalNumberFont-type output; left unchanged.

Returns: SalBoolean. Always .

Instance member Populate(nGetFlag)

Reports that automatic font-name enumeration is not implemented on the Web platform.

ParameterTypeDescription
nGetFlagSalNumberRequested font categories; ignored.

Returns: SalNumber. Always zero. The existing items are unchanged.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow