Skip to main content
Version: 2025

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.

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

Instance member VisFontNameComboBox()

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

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisFontNameComboBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

Returns: VisFontNameComboBox. 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
ISalEditControl
ISalListControl
ISalWindow