Click or drag to resize

DataBrowser.ChangeFont Method (Typed)

X#
Set a new font in a particular area of the data browser.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD ChangeFont(
	oFont AS Font,
	kWhere AS LONG
) AS USUAL
Request Example View Source

Parameters

oFont
Type: Font
The new font to be used.
kWhere
Type: Long
Indicates what part of the browser should be changed, specified as one of the following constants:
ConstantDescription
GBLCOLCAPTIONThe column caption area.
GBLHITEXTHighlighted (selected) text in the data area.
GBLTEXTText in the data display area. This is the default.

Return Value

Type: Usual
The font previously assigned to the changed area.
Remarks
The font can be set for different parts of the data browser as a whole, but not for individual columns. Initially, the default font is extracted from the browser's owner window.
Examples
To use a Helvetica-type font in the text area and a bold version of the same font in the column caption area:
X#
1oDataBrowser:ChangeFont(Font{FONTSWISS8},GBLTEXT)
2oDataBrowser:ChangeFont(Font{FONTROMAN14},GBLCOLCAPTION)
See Also