UIDocument.Selection Property

UIDocumentSelection Property

Retrieve the currently selected Elements in Autodesk Revit.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public Selection Selection { get; }
Public ReadOnly Property Selection As Selection
	Get
public:
property Selection^ Selection {
	Selection^ get ();
}
member Selection : Selection with get

Property Value

Selection
Remarks
Returns an object that represents the active selection. The Selection property returns an object that represents the active selection when the command was started.
See Also