ISControl.Font

Description

The font of the specified control.

Syntax

object.Font

Part Attribute Type Description
object Required
The object always implements the ISControl interface

Return Value

StdFont

Example

Display some information about the specified control, including its font name and font size.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("chkMV")
set aFont = aControl.Font
aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_
  "TypeName: " & aControl.TypeName & vbNewLine &_   
  "Font Name: " & aFont.Name & vbNewLine &_
  "Font Size:" & aFont.Size
    
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Font can be found in Maitain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the control in the controls tree > Font.

Version information

Added in v7.8.0