Returns segments of the current Stroke that are outside the specified rectangle.
public StrokeCollection GetEraseResult(
A Rect that specifies the area to erase.
A StrokeCollection that contains the segments of the current Stroke that are outside the bounds of the specified Rect.
The GetEraseResult method returns a StrokeCollection that contains strokes that represent the segments of the Stroke that are outside of bounds. GetEraseResult does not change the original Stroke.
The following example removes the ink that is within the specified bounds.
Rect myRect = new Rect(100, 100, 100, 100);
StrokeCollection eraseResults = aStroke.GetEraseResult(myRect);
// inkCanvas1 is the InkCanvas on which we update the strokes
GetEraseResult OverloadStroke ClassSystem.Windows.Ink Namespace