InkCanvas::Select Method (StrokeCollection^, IEnumerable<UIElement^>^)
.NET Framework (current version)
Namespace:
System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
Return to top
Assembly: PresentationFramework (in PresentationFramework.dll)
public: void Select( StrokeCollection^ selectedStrokes, IEnumerable<UIElement^>^ selectedElements )
Parameters
- selectedStrokes
-
Type:
System.Windows.Ink::StrokeCollection^
A collection of Stroke objects to select.
- selectedElements
-
Type:
System.Collections.Generic::IEnumerable<UIElement^>^
A collection of UIElement objects to select.
| Exception | Condition |
|---|---|
| ArgumentException | One or more strokes in selectedStrokes is not included in the Strokes property. |
An InkCanvas can contain Stroke objects, which are created in response to user stylus input and UIElement objects, such as Image and Button objects.
Selected strokes will be displayed with an adorner around them for ease of recognition and manipulation. UIElement objects will not display differently when selected. If a UIElement in selectedElements is not in the Children collection, Select ignores the UIElement.
.NET Framework
Available since 3.0
Available since 3.0
Show: