StylusShape Class
Represents the tip of a stylus.
Assembly: PresentationCore (in PresentationCore.dll)
System.Windows.Ink::StylusShape
System.Windows.Ink::EllipseStylusShape
System.Windows.Ink::RectangleStylusShape
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The StylusShape specifies the shape, width, and height of the tip of a stylus. Methods such as Erase and HitTest use a StylusShape to determine the stylus tip of the hitting stroke. The EllipseStylusShape and RectangleStylusShape classes inherit from StylusShape.
This class is not typically used in XAML.
The following example demonstrates how to create a StylusShape and pass it to the GetIncrementalStrokeHitTester method to erase a portion of a Stroke. This example assumes that there is a IncrementalStrokeHitTester called eraseTester and that its StrokeHit event has been connected to the event handler defined in this example. To create a control that allows a user to erase ink, see How to: Erase Ink on a Custom Control.
Available since 3.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.


