InkCanvas::GetSelectedElements Method ()
.NET Framework (current version)
Retrieves the FrameworkElement objects that are selected in the InkCanvas.
Assembly: PresentationFramework (in PresentationFramework.dll)
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<UIElement^>^Array of FrameworkElement objects.
This method returns only FrameworkElement objects, not Stroke objects.
To retrieve selected Stroke objects, call the GetSelectedStrokes method.
If the EditingMode of InkCanvas is set to EditingMode, users can select Stroke objects and FrameworkElement objects. Alternatively, both types of objects can be selected using code: just call the Select method.
.NET Framework
Available since 3.0
Available since 3.0
Show: