Skip to content

Font Property

Description

Gets/Sets the font used to display text in the CommandBars.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Font() As Font

Example

CommandBar Font Sample (Visual Basic)

This sample illustrates how to change the font used to display text in the CommandBars.

' The following illustrates how to change the font used in the CommandBars

Dim TextFont As StdFont

Set TextFont = Me.Font
TextFont.Size = 15
TextFont.Bold = True

Set CommandBars.Options.Font = TextFont

See Also

CommandBarsOptions Object


See Also | | Command Bars ActiveX Control v24.0 | | | | | | | |


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.