获取一个值,该值指定 UI 自动化提供程序是否求至少选择一个子元素。
命名空间: Microsoft.Windows.Automation.Peers
程序集: RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)
语法
声明
Private ReadOnly Property IsSelectionRequired As Boolean
Implements ISelectionProvider.IsSelectionRequired
Get
bool ISelectionProvider.IsSelectionRequired { get; }
private:
virtual property bool IsSelectionRequired {
bool get () sealed = ISelectionProvider::IsSelectionRequired::get;
}
private abstract IsSelectionRequired : bool
private override IsSelectionRequired : bool
JScript 不支持显式接口实现。
属性值
类型:System.Boolean
在所有情况下均为 false。
实现
ISelectionProvider.IsSelectionRequired
备注
此成员是显式的接口成员实现。 它只能在 RibbonGalleryAutomationPeer 实例强制转换为 ISelectionProvider 接口时使用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。