This property returns the font colour of the specified label control encoded as 32 bit integer value, where the first byte contains Red channel, the second byte - Green channel and the third byte - Blue channel.
object.FontColor
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISLabel interface |
uint
Display some information about the specified label control, including its font colour in HEX format.
Dim aLabel
Dim aFont
Dim aLabelInfo
Set aLabel = Form.Controls_("Label1")
set aFont = aLabel.Font
aLabelInfo =_
"Caption: " & aLabel.Caption & vbNewLine &_
"ShortName: " & aLabel.ShortName & vbNewLine &_
"TypeName: " & aLabel.TypeName & vbNewLine &_
"Font Color (BGR): #" & HEX(aLabel.FontColor) & vbNewLine &_
"Font Name: " & aFont.Name & vbNewLine &_
"Font Size: " & aFont.Size
Profile.MsgBox(aLabelInfo)
In Profile Client v8 on User Interface Font Color can be found in
.