OfficeMenu 要素

Office のコンテキスト メニューに追加するコントロールのコレクションを定義します。 Word、Excel、PowerPoint、OneNote アドインに適用されます。

アドインの種類: 作業ウィンドウ

次の VersionOverrides スキーマでのみ有効です

  • Taskpane 1.0

詳細については、「 マニフェストでのバージョンのオーバーライド」を参照してください。

次の要件セットに関連付けられています

属性

属性 必須 説明
xsi:type はい 定義する OfficeMenu の種類。

子要素

要素 必須 説明
メニューの種類の制御 はい 1 つ以上のコントロール オブジェクトのコレクション。

xsi:type

この Office アドインを追加する Office クライアント アプリケーションの組み込みメニューを指定します。

  • ContextMenuText - テキストが選択され、ユーザーが選択したテキストのコンテキスト メニュー (右クリック) を開くと、コンテキスト メニューに項目が表示されます。 Word、Excel、PowerPoint、OneNote に適用されます。
  • ContextMenuCell - ユーザーがスプレッドシート上のセルのコンテキスト メニュー (右クリック) を開いたときに、コンテキスト メニューに項目を表示します。 Excel に適用されます。

<OfficeMenu xsi:type="ContextMenuCell">
    <Control xsi:type="Menu" id="Contoso.myMenu">
      <Label resid="residLabel3" />
      <Supertip>
          <Title resid="residLabel" />
          <Description resid="residToolTip" />
      </Supertip>
      <Icon>
        <bt:Image size="16" resid="icon1_16x16" />
        <bt:Image size="32" resid="icon1_32x32" />
        <bt:Image size="80" resid="icon1_80x80" />
      </Icon>
      <Items>
        <Item id="myMenuItemID">
          <Label resid="residLabel3"/>
          <Supertip>
            <Title resid="residLabel" />
            <Description resid="residToolTip" />
          </Supertip>
          <Icon>
            <bt:Image size="16" resid="icon1_16x16" />
            <bt:Image size="32" resid="icon1_32x32" />
            <bt:Image size="80" resid="icon1_80x80" />
          </Icon>
          <Action xsi:type="ShowTaskpane">
            <SourceLocation resid="residTaskpaneUrl2" />
          </Action>
        </Item>
      </Items>
    </Control>
</OfficeMenu>