适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
定义布局中的节。
<Section
  Type="Divider | OneRow | TwoRow | ThreeRow"
  Alignment="Top | Middle"
/>
元素和属性
下面各部分介绍了属性、子元素和父元素。
Attributes
| 属性 | 说明 | 
|---|---|
| Type | 可选。 一个指定节类型的枚举值。 分隔符。 该节不能包含子 Row 元素。 OneRow。 该节可以包含一个子 Row 元素。 TwoRow。 该节可以包含两个子 Row 元素。 ThreeRow。 该节可以包含三个子 Row 元素。 | 
| Alignment | 可选。 一个指定节中控件的垂直对齐方式的枚举值。 顶部。 控件图标与其所在行的上边缘对齐。 中间。 控件图标与其所在行的中部对齐。 默认对齐方式为 Top。 | 
子元素
父元素
出现次数
- 最小值:0
- 最大值:无限制
示例
下面的示例定义一个包含两个不同类型的节的布局。
<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>