Stroke Methods

The Stroke type exposes the following members.

  Name Description
Public method AddPropertyData Adds a custom property to the Stroke object.
Public method Clone Returns a deep copy of the existing Stroke object.
Public method ContainsPropertyData Returns a value that indicates whether the Stroke object contains the specified custom property.
Public method Draw(DrawingContext) Renders the Stroke object based upon the specified DrawingContext.
Public method Draw(DrawingContext, DrawingAttributes) Renders the Stroke object based upon the specified DrawingContext and DrawingAttributes.
Protected method DrawCore Renders the Stroke on the specified DrawingContext using the specified DrawingAttributes.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBezierStylusPoints Returns the stylus points the Stroke uses when FitToCurve is true.
Public method GetBounds Retrieves the bounding box for the Stroke object.
Public method GetClipResult(IEnumerable<Point>) Returns segments of the current Stroke that are within the specified bounds.
Public method GetClipResult(Rect) Returns segments of the current Stroke that are within the specified rectangle.
Public method GetEraseResult(IEnumerable<Point>) Returns segments of the current Stroke that are outside the specified bounds.
Public method GetEraseResult(Rect) Returns segments of the current Stroke that are outside the specified rectangle.
Public method GetEraseResult(IEnumerable<Point>, StylusShape) Returns the segments of the current Stroke after it is dissected by the designated path using the specified StylusShape.
Public method GetGeometry() Gets the Geometry of the current Stroke.
Public method GetGeometry(DrawingAttributes) Gets the Geometry of the current Stroke using the specified DrawingAttributes.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPropertyData Retrieves the property data for the specified GUID.
Public method GetPropertyDataIds Retrieves the GUIDs of any custom properties associated with the Stroke object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HitTest(Point) Returns a value that indicates whether current Stroke intersects the specified point.
Public method HitTest(IEnumerable<Point>, Int32) Returns a value that indicates whether the current Stroke is within the specified bounds.
Public method HitTest(IEnumerable<Point>, StylusShape) Returns whether the specified path intersects the Stroke using the specified StylusShape.
Public method HitTest(Point, Double) Returns a value that indicates whether current Stroke intersects the specified area.
Public method HitTest(Rect, Int32) Returns a value that indicates whether the Stroke is within the bounds of the specified rectangle.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnDrawingAttributesChanged Allows derived classes to modify the default behavior of the DrawingAttributesChanged event.
Protected method OnDrawingAttributesReplaced Allows derived classes to modify the default behavior of the DrawingAttributesReplaced event.
Protected method OnInvalidated Raises the Invalidated event.
Protected method OnPropertyChanged Occurs when any Stroke property changes.
Protected method OnPropertyDataChanged Allows derived classes to modify the default behavior of the PropertyDataChanged event.
Protected method OnStylusPointsChanged Raises the StylusPointsChanged event.
Protected method OnStylusPointsReplaced Raises the StylusPointsReplaced event.
Public method RemovePropertyData Deletes a custom property from the Stroke object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Transform Performs a transformation based upon the specified Matrix object.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft