GroupTemplate 要素 (サーバー リボン)

適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

コントロールのサイズ調整動作を Group 要素に定義します。

<GroupTemplate
  Id="Text"
  ClassName="CSS Class Selector"
/>

要素と属性

以下のセクションで、属性、子要素、親要素について説明します。

属性

属性 説明
Id
必須です。 要素を厳密に識別する文字列 ("Ribbon.Templates.CustomTemplateExample" など)。
ClassName
オプション。 グループに適用する CSS クラス セレクターの名前。

子要素

親要素

Occurrences

  • 最小 : 0
  • 最大 : 1

次の例では、カスタム グループ テンプレートを定義します。

<GroupTemplate Id="Ribbon.Templates.CustomTemplateExample">
  <Layout
    Title="OneLargeTwoMedium" LayoutTitle="OneLargeTwoMedium">
    <Section Alignment="Top" Type="OneRow">
      <Row>
        <ControlRef DisplayMode="Large" TemplateAlias="row1" />
      </Row>
    </Section>
    <Section Alignment="Top" Type="TwoRow">
      <Row>
        <ControlRef DisplayMode="Medium" TemplateAlias="row2" />
      </Row>
      <Row>
        <ControlRef DisplayMode="Medium" TemplateAlias="row3" />
      </Row>
    </Section>
  </Layout>
</GroupTemplate>