नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Defines the scaling behavior for controls in a Group element.
<GroupTemplate
Id="Text"
ClassName="CSS Class Selector"
/>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| Id |
Required. A string that unambiguously identifies the element, such as "Ribbon.Templates.CustomTemplateExample". |
| ClassName |
Optional. The name of a CSS class selector to apply to the group. |
Child elements
Parent elements
Occurrences
- Minimum: 0
- Maximum: 1
Example
The following example defines a custom group template.
<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>