Share via


ISelectionService.PrimarySelection 属性

定义

获取当前为主选定对象的对象。

public:
 property System::Object ^ PrimarySelection { System::Object ^ get(); };
public object PrimarySelection { get; }
public object? PrimarySelection { get; }
member this.PrimarySelection : obj
Public ReadOnly Property PrimarySelection As Object

属性值

当前为主选定对象的对象。

注解

在设计时选择多个组件时,其中一个对象是主要选定的对象。 某些操作的行为因所选组件是主要选定对象而有所不同。 主选定对象通常是最后选择的对象,但多个组件选择的主对象可以更改为任何所选组件。 主要选定对象的选择边框在外观上与其他选定对象不同。 视觉区分的具体类型取决于开发环境对选择用户界面的实现。

适用于