CommandBarButtonClass.FaceId Property
Gets or sets the Id number for the face of a CommandBarButton control. Read/write.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Public Overridable Property FaceId As Integer
Get
Set
'Usage
Dim instance As CommandBarButtonClass
Dim value As Integer
value = instance.FaceId
instance.FaceId = value
public virtual int FaceId { get; set; }
Property Value
Type: System.Int32
Implements
Remarks
The FaceId property dictates the look, not the function, of a command bar button. The Id property of the CommandBarControl object determines the function of the button.
The value of the FaceId property for a command bar button with a custom face is 0 (zero).
Examples
This example adds a command bar button to a custom command bar. Clicking this button is equivalent to clicking the Open command on the File menu because the ID number is 23, yet the button has the same button face as the built-in Charting button.