Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the primary selection object.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public ReadOnly Property PrimarySelection As ModelItem
Get
public ModelItem PrimarySelection { get; }
public:
property ModelItem^ PrimarySelection {
ModelItem^ get ();
}
member PrimarySelection : ModelItem
function get PrimarySelection () : ModelItem
Property Value
Type: Microsoft.Windows.Design.Model.ModelItem
If the selection contains objects, the primary selection object; otherwise, nulla null reference (Nothing in Visual Basic).
Remarks
When multiple objects are selected in a designer, one object is the primary selection object. The primary selection object is often used as a key for other behaviors. For example, to align all selected objects to the left, the primary selection object determines where to align the objects.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace