次の方法で共有


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

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

レイアウトのセクションを定義します。

<Section
  Type="Divider | OneRow | TwoRow | ThreeRow"
  Alignment="Top | Middle"
/>

要素と属性

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

属性

属性 説明
Type
オプション。 セクションの種類を指定する列挙値。

区切り線。 セクションに子 Row 要素を含めることはできません。
OneRow。 セクションに 1 つの子 Row 要素を含めることができます。
TwoRow。 セクションに 2 つの子 Row 要素を含めることができます。
ThreeRow。 セクションに 3 つの子 Row 要素を含めることができます。
位置揃え
オプション。 セクション内のコントロールの垂直方向の配置を指定する列挙値。

上部。 コントロール アイコンがその行の上端に揃えられます。
中央。 コントロール アイコンがその行の中央に揃えられます。

既定の配置は、Top です。

子要素

親要素

Occurrences

  • 最小: 0
  • 最大: 制約なし

次の例では、異なる種類の 2 つのセクションを持つレイアウトが定義されます。

<Layout Title="Large">
  <Section Type="OneRow">
    <Row>
      <ControlRef TemplateAlias="createView" DisplayMode="Large" />
    </Row>
  </Section>
  <Section Type="ThreeRow">
    <Row>
      <ControlRef TemplateAlias="viewSelector" DisplayMode="Medium" />
    </Row>
    <Row>
      <ControlRef TemplateAlias="modifyView" DisplayMode="Medium" />
    </Row>
    <Row>
      <Strip>
        <ControlRef TemplateAlias="previousPage" DisplayMode="Small" />
        <ControlRef TemplateAlias="currentPage" DisplayMode="Medium" />
        <ControlRef TemplateAlias="nextPage" DisplayMode="Small" />
      </Strip>
    </Row>
  </Section>
</Layout>