<CheckBox> (RibbonDiffXml)

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

指定用于选择选项的复选框。

语法

<CheckBox
 Alt="String"
 Command="String"
 Id="String"
 LabelText="String"
 MenuItemId="String"
 QueryCommand="String"
 Sequence="integer"
 TemplateAlias="String"
 ToolTipDescription="String"
 ToolTipHelpKeyWord="String"
 ToolTipImage32by32="String"
 ToolTipImage32by32Class="String"
 ToolTipImage32by32Left="NonPositiveInteger"
 ToolTipImage32by32Top="NonPositiveInteger"
 ToolTipShortcutKey="String"
 ToolTipTitle="String" />

属性和元素

The following table lists the attributes, child elements, and parent elements.

属性

Attribute Description Type Usage

Alt

用于显示为替代文本的字符串或对本地化标签的引用。

String

Optional

Command

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

A reference to an existing CommandDefinition.Id value.

String

Optional

Id

指定功能区元素的定义的唯一标识符。强烈推荐的命名约定是使用句点来分隔名称各部分的,如[solution identifier].[entity].[ribbon].[function].[element name]。例如: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

LabelText

指定要显示为控件的文本的字符串。这可以使用 $LocLabels: 指令引用 LocLabel 元素,例如“$LocLabels:MyISV.account.Save.Button.Label”。

String

Optional

MenuItemId

指定从控件到菜单项 ID 的引用。

String

Optional

QueryCommand

指定在轮询状态信息时要运行的命令的名称。

String

Optional

Sequence

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

Integer

Optional

TemplateAlias

将 CommandUIDefinition 的功能区元素子级与 Layout 元素子级中的位置占位符关联。此值定义了控件在布局发生更改时在控件组中的显示位置。

备注

This element cannot be associated with a template alias that represents an <OverflowSection> (RibbonDiffXml) or a <ControlRef> (RibbonDiffXml) element that uses the Large display mode.

String

Optional

ToolTipDescription

指定要为控件的工具提示显示的字符串。这可以使用 $LocLabels: 指令引用 LocLabel 元素,例如“$LocLabels:MyISV.account.Save.Button.Tooltip”。

String

Optional

ToolTipHelpKeyWord

Microsoft Dynamics CRM 中未使用此元素。

String

Optional

ToolTipImage32by32

指定一个将与工具提示一起显示的 32x32 像素的图像。

String

Optional

ToolTipImage32by32Class

指定要应用于随工具提示一起显示的 32x32 像素的图像的 CSS 类。

String

Optional

ToolTipImage32by32Left

指定要将工具提示的 32x32 像素的图像左移的像素数。此数字可由负数表示。

Non Positive Integer

Optional

ToolTipImage32by32Top

指定要将工具提示的 32x32 像素的图像上移的像素数。此数字可由负数表示。

Non Positive Integer

Optional

ToolTipShortcutKey

Microsoft Dynamics CRM 中未使用此元素。

String

Optional

ToolTipTitle

指定要为控件的工具提示标题显示的字符串。这通常与控件 LabelText 的值相同。这可以使用 $LocLabels: 指令引用 LocLabel 元素,例如“$LocLabels:MyISV.account.Save.Button.Label”。

String

Optional

子元素

This element has no child elements.

父元素

Element Description

<CommandUIDefinition> (RibbonDiffXml)

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

<Controls> (RibbonDiffXml)

包含一个控件集合。

示例

<CheckBox Command="MyISV.account.form.SendToOtherSystem.Command" Id="MyISV.account.form.SendToOtherSystem.Button" LabelText="$LocLabels:MyISV.account.SendToOtherSystem.LabelText" TemplateAlias="o2" ToolTipDescription="$LocLabels:MyISV.account.SendToOtherSystem.ToolTip" ToolTipTitle="$LocLabels:MyISV.account.SendToOtherSystem.LabelText" />

元素信息

XPath

//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/CheckBox |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/Controls/CheckBox

Schema Name

CheckBoxType

Validation File

RibbonWSS.xsd

Can be Empty

Yes

另请参阅

其他资源

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

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