ISProfileForm.Font

Description

The font of the specified form.

Syntax

object.Font

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

Return Value

StdFont

Example

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

Dim aForm
Dim aFont
Dim aFormInfo

Set aForm = Profile.Form
set aFont = aForm.Font 

aFont.Size = 10
aForm.FontColor = 255

aFormInfo =_
  "ShortName: " & aForm.ShortName & vbNewLine &_
  "TypeName: " & aForm.TypeName & vbNewLine &_
  "Font Color: " & Hex(aForm.FontColor) & vbNewLine &_ 
  "Font Name: " & aFont.Name & vbNewLine &_
  "Font Size: " & aFont.Size               
  
Profile.MsgBox(aFormInfo)  
Note: This macro should be executed in any event handler of the form control.

This property has an effect for some form child controls with ParentFont = True. In Profile Client v8 on User Interface Font cannot be found.

Version information

Added in v7.8.0