Stroke Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single ink stroke.
public ref class Stroke : System::ComponentModel::INotifyPropertyChanged
public class Stroke : System.ComponentModel.INotifyPropertyChanged
type Stroke = class
interface INotifyPropertyChanged
Public Class Stroke
Implements INotifyPropertyChanged
- Inheritance
-
Stroke
- Implements
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.
Stroke(Stylus |
Initializes a new instance of the Stroke class. |
Stroke(Stylus |
Initializes a new instance of the Stroke class. |
Drawing |
Gets or sets the DrawingAttributes for the Stroke object. |
Stylus |
Returns the stylus points of the Stroke. |
Add |
Adds a custom property to the Stroke object. |
Clone() |
Returns a deep copy of the existing Stroke object. |
Contains |
Returns a value that indicates whether the Stroke object contains the specified custom property. |
Draw(Drawing |
Renders the Stroke object based upon the specified DrawingContext and DrawingAttributes. |
Draw(Drawing |
Renders the Stroke object based upon the specified DrawingContext. |
Draw |
Renders the Stroke on the specified DrawingContext using the specified DrawingAttributes. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Returns the stylus points the Stroke uses when FitToCurve is |
Get |
Retrieves the bounding box for the Stroke object. |
Get |
Returns segments of the current Stroke that are within the specified bounds. |
Get |
Returns segments of the current Stroke that are within the specified rectangle. |
Get |
Returns the segments of the current Stroke after it is dissected by the designated path using the specified StylusShape. |
Get |
Returns segments of the current Stroke that are outside the specified bounds. |
Get |
Returns segments of the current Stroke that are outside the specified rectangle. |
Get |
|
Get |
Gets the Geometry of the current Stroke using the specified DrawingAttributes. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Retrieves the property data for the specified GUID. |
Get |
Retrieves the GUIDs of any custom properties associated with the Stroke object. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Hit |
Returns a value that indicates whether the current Stroke is within the specified bounds. |
Hit |
Returns whether the specified path intersects the Stroke using the specified StylusShape. |
Hit |
Returns a value that indicates whether current Stroke intersects the specified area. |
Hit |
Returns a value that indicates whether current Stroke intersects the specified point. |
Hit |
Returns a value that indicates whether the Stroke is within the bounds of the specified rectangle. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
On |
Allows derived classes to modify the default behavior of the DrawingAttributesChanged event. |
On |
Allows derived classes to modify the default behavior of the DrawingAttributesReplaced event. |
On |
Raises the Invalidated event. |
On |
Occurs when any Stroke property changes. |
On |
Allows derived classes to modify the default behavior of the PropertyDataChanged event. |
On |
Raises the StylusPointsChanged event. |
On |
Raises the StylusPointsReplaced event. |
Remove |
Deletes a custom property from the Stroke object. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Transform(Matrix, Boolean) |
Performs a transformation based upon the specified Matrix object. |
Drawing |
Occurs when the DrawingAttributes associated with the Stroke object change. |
Drawing |
Occurs when the drawing attributes of a Stroke object are replaced. |
Invalidated |
Occurs when the appearance of the Stroke changes. |
Property |
Occurs when the custom properties on a Stroke object changes. |
Stylus |
Occurs when the StylusPoints property changes. |
Stylus |
Occurs when the StylusPoints property is assigned a new StylusPointCollection. |
INotify |
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. |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: