Section Element
Applies to: SharePoint Foundation 2010
Defines a section of a layout.
<Section
Type="Divider | OneRow | TwoRow | ThreeRow"
Alignment="Top | Middle"
/>
Attributes
Attribute |
Description |
---|---|
Type |
Optional. An enumeration value that specifies the type of section.
|
Alignment |
Optional. An enumeration value that specifies the vertical alignment of controls within the section.
The default alignment is Top. |
Child Elements
Parent Elements
Occurrences
Minimum: 0 Maximum: unbounded |
Example
The following example defines a layout with two sections of different types.
<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>