CommandBarButtonClass.FaceId Property

Definition

Gets or sets the Id number for the face of a CommandBarButton control. Read/write.

public:
 virtual property int FaceId { int get(); void set(int value); };
public virtual int FaceId { get; set; }
member this.FaceId : int with get, set
Public Overridable Property FaceId As Integer

Property Value

Implements

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.

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).

Applies to