Per Mausklick bewerten und Feedback geben
Alle reduzieren/Alle erweitern Alle reduzieren
Office Core Primary Interop Assembly Reference
CommandBarControl Interface
Represents a command bar control.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Visual Basic
Public Class ommandBarControlImplementation
    Implements CommandBarControl
End Class
Dim ommandBarControlImplementation1 As New ommandBarControlImplementation()
Visual Basic
Public Interface CommandBarControl
	Inherits _IMsoOleAccDispObj
C#
public interface CommandBarControl : _IMsoOleAccDispObj
C++
public interface class CommandBarControl : public _IMsoOleAccDispObj
J#
public interface CommandBarControl implements _IMsoOleAccDispObj
JScript
public interface CommandBarControl implements _IMsoOleAccDispObj

The CommandBarControl object is a member of the CommandBarControls collection. The properties and methods of the CommandBarControl object are all shared by the CommandBarButton, CommandBarComboBox, and CommandBarPopup objects.

When writing code to work with custom command bar controls, you use the CommandBarButton, CommandBarComboBox, and CommandBarPopup objects. When writing code to work with built-in controls in the container application that cannot be represented by one of those three objects, you use the CommandBarControl object.

Use Controls(index), where index is the index number of a control, to return a CommandBarControl object. (The Type property of the control must be msoControlLabel, msoControlExpandingGrid, msoControlSplitExpandingGrid, msoControlGrid, or msoControlGauge.)

Note:
Variables declared as CommandBarControl can be assigned CommandBarButton, CommandBarComboBox, and CommandBarPopup values.

You can also use the FindControl method to return a CommandBarControl object.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

© 2012 Microsoft. Alle Rechte vorbehalten. Nutzungsbedingungen | Markenzeichen | Informationen zur Datensicherheit
Page view tracker