DataBrowser.ChangeFont Method (Typed) | |
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.21
Syntax VIRTUAL METHOD ChangeFont(
oFont AS Font,
kWhere AS LONG
) AS USUAL
public virtual Usual ChangeFont(
Font oFont,
int kWhere
)
Request Example
View SourceParameters
- 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:
Constant | Description |
---|
GBLCOLCAPTION | The column caption area. |
GBLHITEXT | Highlighted (selected) text in the data area. |
GBLTEXT | Text 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:
1oDataBrowser:ChangeFont(Font{FONTSWISS8},GBLTEXT)
2oDataBrowser:ChangeFont(Font{FONTROMAN14},GBLCOLCAPTION)
See Also