The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
StrokeCollection::Replace Method (Stroke^, StrokeCollection^)
.NET Framework (current version)
Replaces the specified Stroke with the specified StrokeCollection.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- strokeToReplace
-
Type:
System.Windows.Ink::Stroke^
The Stroke to replace.
- strokesToReplaceWith
-
Type:
System.Windows.Ink::StrokeCollection^
The source StrokeCollection.
| Exception | Condition |
|---|---|
| ArgumentException | strokesToReplace is empty. -or- strokesToReplaceWith is empty. -or- A Stroke in strokesToReplaceWith is already in strokesToReplace. |
The Replace method raises the StrokesChanged event.
.NET Framework
Available since 3.0
Available since 3.0
Show: