<Tab> (RibbonDiffXml)

应用到: CRM 2016 on-prem, CRM Online

指定功能区中的选项卡。

语法

<Tab
 Command="String"
 CssClass="String"
 Description="String"
 Id="String"
 Sequence="Integer"
 Title="String">
 <Scaling />
 <Groups />
</Tab>

属性和元素

The following describes the attributes, child elements, and parent elements.

属性

Attribute Description Type Usage

Command

指定此控件的功能区命令的 ID。

String

Optional

CssClass

The name of the CSS class to apply when the tab is rendered.

String

Optional

Description

Microsoft Dynamics CRM 不使用 Description 属性。

String

Optional

Id

指定功能区元素的定义的唯一标识符。强烈建议的命名约定是使用句点分隔名称的各个部分,如:[解决方案标识符].[实体].[功能区].[函数].[元素名称]。例如:MyISV.account.form.SendToOtherSystem.Button。

Use the {!EntityLogicalName} token in the Id attribute when you define a ribbon element that will be used for multiple entities. This inserts the entity logical name into the Id value to make sure that the Id value is globally unique.

For example, if you use MyISV.{!EntityLogicalName}.form.SendToOtherSystem.Button with the account entity, the Id will be MyISV.account.form.SendToOtherSystem.Button. For the contact entity, the Id will be MyISV.contact.form.SendToOtherSystem.Button.

重要

If you don’t set a globally unique Id value, the ribbon might not display.

String

Required

Sequence

通过将序列值设置为高于或低于现有功能区元素来指定功能区修改内容的位置。

Integer

Optional

Title

本元素不用于 Microsoft Dynamics CRM。

String

Optional

子元素

Element Description

<Scaling> (RibbonDiffXml)

包含一个元素集合,这些元素用于定义功能区组在可用的水平空间发生更改时的显示方式。

<Groups> (RibbonDiffXml)

包含一个 Group 元素集合。

父元素

Element Description

<CommandUIDefinition> (RibbonDiffXml)

指定要包含在 CustomAction 元素中的可见 Ribbon 元素。

<ContextualGroup> (RibbonDiffXml)

包含一个要在特定上下文中显示的选项卡集合。

元素信息

XPath

//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/Tab |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/ContextualGroup/Tab

Schema Name

TabType

Validation File

RibbonWSS.xsd

Can be Empty

No

另请参阅

其他资源

Ribbon XML reference
自定义命令和功能区

Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.