Stroke Class

 

Represents a single ink stroke.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

System::Object
  System.Windows.Ink::Stroke

public ref class Stroke : INotifyPropertyChanged

NameDescription
System_CAPS_pubmethodStroke(StylusPointCollection^)

Initializes a new instance of the Stroke class.

System_CAPS_pubmethodStroke(StylusPointCollection^, DrawingAttributes^)

Initializes a new instance of the Stroke class.

NameDescription
System_CAPS_pubpropertyDrawingAttributes

Gets or sets the DrawingAttributes for the Stroke object.

System_CAPS_pubpropertyStylusPoints

Returns the stylus points of the Stroke.

NameDescription
System_CAPS_pubmethodAddPropertyData(Guid, Object^)

Adds a custom property to the Stroke object.

System_CAPS_pubmethodClone()

Returns a deep copy of the existing Stroke object.

System_CAPS_pubmethodContainsPropertyData(Guid)

Returns a value that indicates whether the Stroke object contains the specified custom property.

System_CAPS_pubmethodDraw(DrawingContext^)

Renders the Stroke object based upon the specified DrawingContext.

System_CAPS_pubmethodDraw(DrawingContext^, DrawingAttributes^)

Renders the Stroke object based upon the specified DrawingContext and DrawingAttributes.

System_CAPS_protmethodDrawCore(DrawingContext^, DrawingAttributes^)

Renders the Stroke on the specified DrawingContext using the specified DrawingAttributes.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetBezierStylusPoints()

Returns the stylus points the Stroke uses when FitToCurve is true.

System_CAPS_pubmethodGetBounds()

Retrieves the bounding box for the Stroke object.

System_CAPS_pubmethodGetClipResult(IEnumerable<Point>^)

Returns segments of the current Stroke that are within the specified bounds.

System_CAPS_pubmethodGetClipResult(Rect)

Returns segments of the current Stroke that are within the specified rectangle.

System_CAPS_pubmethodGetEraseResult(IEnumerable<Point>^)

Returns segments of the current Stroke that are outside the specified bounds.

System_CAPS_pubmethodGetEraseResult(IEnumerable<Point>^, StylusShape^)

Returns the segments of the current Stroke after it is dissected by the designated path using the specified StylusShape.

System_CAPS_pubmethodGetEraseResult(Rect)

Returns segments of the current Stroke that are outside the specified rectangle.

System_CAPS_pubmethodGetGeometry()

Gets the Geometry of the current Stroke.

System_CAPS_pubmethodGetGeometry(DrawingAttributes^)

Gets the Geometry of the current Stroke using the specified DrawingAttributes.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetPropertyData(Guid)

Retrieves the property data for the specified GUID.

System_CAPS_pubmethodGetPropertyDataIds()

Retrieves the GUIDs of any custom properties associated with the Stroke object.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHitTest(IEnumerable<Point>^, Int32)

Returns a value that indicates whether the current Stroke is within the specified bounds.

System_CAPS_pubmethodHitTest(IEnumerable<Point>^, StylusShape^)

Returns whether the specified path intersects the Stroke using the specified StylusShape.

System_CAPS_pubmethodHitTest(Point)

Returns a value that indicates whether current Stroke intersects the specified point.

System_CAPS_pubmethodHitTest(Point, Double)

Returns a value that indicates whether current Stroke intersects the specified area.

System_CAPS_pubmethodHitTest(Rect, Int32)

Returns a value that indicates whether the Stroke is within the bounds of the specified rectangle.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnDrawingAttributesChanged(PropertyDataChangedEventArgs^)

Allows derived classes to modify the default behavior of the DrawingAttributesChanged event.

System_CAPS_protmethodOnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs^)

Allows derived classes to modify the default behavior of the DrawingAttributesReplaced event.

System_CAPS_protmethodOnInvalidated(EventArgs^)

Raises the Invalidated event.

System_CAPS_protmethodOnPropertyChanged(PropertyChangedEventArgs^)

Occurs when any Stroke property changes.

System_CAPS_protmethodOnPropertyDataChanged(PropertyDataChangedEventArgs^)

Allows derived classes to modify the default behavior of the PropertyDataChanged event.

System_CAPS_protmethodOnStylusPointsChanged(EventArgs^)

Raises the StylusPointsChanged event.

System_CAPS_protmethodOnStylusPointsReplaced(StylusPointsReplacedEventArgs^)

Raises the StylusPointsReplaced event.

System_CAPS_pubmethodRemovePropertyData(Guid)

Deletes a custom property from the Stroke object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransform(Matrix, Boolean)

Performs a transformation based upon the specified Matrix object.

NameDescription
System_CAPS_pubeventDrawingAttributesChanged

Occurs when the DrawingAttributes associated with the Stroke object change.

System_CAPS_pubeventDrawingAttributesReplaced

Occurs when the drawing attributes of a Stroke object are replaced.

System_CAPS_pubeventInvalidated

Occurs when the appearance of the Stroke changes.

System_CAPS_pubeventPropertyDataChanged

Occurs when the custom properties on a Stroke object changes.

System_CAPS_pubeventStylusPointsChanged

Occurs when the StylusPoints property changes.

System_CAPS_pubeventStylusPointsReplaced

Occurs when the StylusPoints property is assigned a new StylusPointCollection.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_priveventINotifyPropertyChanged::PropertyChanged

This API supports the product infrastructure and is not intended to be used directly from your code. Occurs when the value of any Stroke property has changed.

A Stroke is the data object that is collected from a pointing device, such as a tablet pen or a mouse. The Stroke can be created and manipulated programmatically, and can be represented visually on an ink-enabled element, such as the InkCanvas. A Stroke contains information about both its position and appearance. The StylusPoints property is a collection of StylusPoint objects that specifies the position of the Stroke. The DrawingAttributes property specifies a stroke's appearance.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: