다음을 통해 공유


Workbook.CommandBars 속성

정의

Microsoft Office Excel 명령 모음을 나타내는 Microsoft.Office.Core.CommandBars 개체를 가져옵니다.

public:
 property Microsoft::Office::Core::CommandBars ^ CommandBars { Microsoft::Office::Core::CommandBars ^ get(); };
public Microsoft.Office.Core.CommandBars CommandBars { get; }
member this.CommandBars : Microsoft.Office.Core.CommandBars
Public ReadOnly Property CommandBars As CommandBars

속성 값

Microsoft Office Excel 명령 모음을 나타내는 Microsoft.Office.Core.CommandBars 개체입니다.

설명

통합 문서가 다른 애플리케이션에 포함되고 통합 문서를 두 번 클릭하여 사용자가 활성화하는 경우 Workbook 개체와 함께 속성을 사용하면 다른 응용 프로그램 내에서 사용할 수 있는 Excel 명령 모음 집합이 반환됩니다. 이 속성을 Workbook 개체와 함께 사용하면 항상 이 반환됩니다 null. 통합 문서에 연결된 명령 모음 집합을 반환하는 프로그래밍 방식의 방법은 없습니다. 명령 모음은 통합 문서가 아닌 애플리케이션과 연결됩니다. 이 속성은 통합 문서에 있으므로 Excel이 애플리케이션이 아닌 경우 Excel 애플리케이션 명령 모음에 액세스할 수 있습니다.

적용 대상