Share via


ModelingWindowPane.CountSelectedObjects Method

Gets the number of elements in the current selection.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Overridable Function CountSelectedObjects As UInteger
'Usage
Dim returnValue As UInteger 

returnValue = Me.CountSelectedObjects()
protected virtual uint CountSelectedObjects()
protected:
virtual unsigned int CountSelectedObjects()
protected function CountSelectedObjects() : uint

Return Value

Type: System.UInt32
The number of elements in the current selection.

Remarks

By default, this method returns the count of the SelectedElements collection.

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

Microsoft.VisualStudio.Modeling.Shell Namespace