GefFontFormat.Bold (property)

Gets and sets the bold state of the font.
Syntax: Boolean = object.Bold
object.Bold = Boolean
Description: The Bold property actually switches the font Weight between normal (400) and bold (700).


Sub GefFontFormat_Bold()
    Dim oCimObj As GefObject
    Dim oCimObjTxtFmt As GefTextFormat
    Dim oCimObjFntFmt As GefFontFormat
    Set oCimObj = CimGetObject
    Set oCimObjTxtFmt = oCimObj.TextFormat
    If Not oCimObjTxtFmt Is Nothing Then
        Set oCimObjFntFmt = oCimObjTxtFmt.Font
        If Not oCimObjFntFmt Is Nothing Then
            oCimObjFntFmt.Bold = gefStateTrue
            CimGetScreen.Refresh False
        End If
    End If
End Sub