RectangleStylusShape Class
Represents a rectangular stylus tip.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() | RectangleStylusShape(Double, Double) | Initializes a new instance of the RectangleStylusShape class with the specified width and height. |
![]() | RectangleStylusShape(Double, Double, Double) | Initializes a new instance of the RectangleStylusShape class with the specified width, height, and angle. |
| Name | Description | |
|---|---|---|
![]() | Height | Gets the height of the stylus.(Inherited from StylusShape.) |
![]() | Rotation | Gets the angle of the stylus.(Inherited from StylusShape.) |
![]() | Width | Gets the width of the stylus. (Inherited from StylusShape.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The following example demonstrates how to use a RectangleStylusShape to perform hit testing on a StrokeCollection. This example assumes that there is an InkPresenter called presenter.
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.

