<CheckBox> (RibbonDiffXml)
应用到: CRM 2016 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 |
指定功能区元素的定义的唯一标识符。强烈建议的命名约定是使用句点分隔名称的各个部分,如:[解决方案标识符].[实体].[功能区].[函数].[元素名称]。例如: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 重要 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 |
---|---|
指定要包含在 CustomAction 元素中的可见 Ribbon 元素。 |
|
包含一个控件集合。 |
示例
<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 |
|
Schema Name |
CheckBoxType |
Validation File |
RibbonWSS.xsd |
Can be Empty |
Yes |
另请参阅
其他资源
自定义命令和功能区
Ribbon XML reference
Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.