다음을 통해 공유


Stroke Members

Represents a single ink stroke. A stroke is a set of properties and point data that the digitizer captures that represent the coordinates and properties of a known ink mark. It is the set of data that is captured in a single pen down, up, or move sequence.

The following tables list the members exposed by the Stroke type.

Public Properties

  Name Description
Public property BezierCusps Gets an array that contains the indices of the cusps of the Bezier approximation of the Stroke object.
Public property BezierPoints Gets the array of control points that represent the Bezier approximation of the stroke.
Public property Deleted Gets a value that indicates whether the Stroke object has been deleted from its parent Ink object.
Public property DrawingAttributes Gets or sets the drawing attributes to apply to ink as it is drawn.
Public property ExtendedProperties Gets the collection of application-defined data.
Public property Id Gets the identifier of the Stroke object.
Public property Ink Gets the parent Ink object of the Stroke object.
Public property PacketCount Gets the number of packet received for a Stroke object.
Public property PacketDescription Gets an array of type Guid that describes the types of packet data stored in the Stroke object.
Public property PacketSize Gets the size, in bytes, of a packet.
Public property PolylineCusps Gets an array that contains the indices of the cusps of the Stroke object.
Public property SelfIntersections Gets the self-intersections of the Stroke object.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method Clip Removes the portions of the Stroke object that are outside a given rectangle.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindIntersections Finds the points where this Stroke object intersects other Stroke objects within a given Strokes collection.
Public method GetBoundingBox Overloaded. Returns the bounding Rectangle that contains the Stroke object.
Public method GetFlattenedBezierPoints Overloaded. Returns the array of points that are used to approximate the Bezier representation of a Stroke object.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetPacketData Overloaded. Returns the packet data associated with one or more points in a Stroke object.
Public method GetPacketDescriptionPropertyMetrics Returns the metrics for a given packet description type.
Public method GetPacketValuesByProperty Overloaded. Returns the data for a specified packet property from one or more packets in the Stroke object.
Public method GetPoint Returns the Point structure at the specified index in a Stroke object.
Public method GetPoints Overloaded. Returns an array of Point structures that make up the Stroke object.
Public method GetRectangleIntersections Returns an array of Point structures that indicate where a Stroke object intersects a given Rectangle.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method HitTest Returns a value that indicates whether a Stroke object is either completely inside or intersected by a given circle.
Public method Move Applies a translation to the ink of the Stroke object.
Public method NearestPoint Overloaded. Returns the location on the Stroke object nearest to a specified Point.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Rotate Rotates the Stroke object around a center point.
Public method Scale Scales the Stroke object in the X and Y dimensions.
Public method ScaleToRectangle Scales the Stroke object to fit in the specified Rectangle structure.
Public method SetPacketValuesByProperty Overloaded. Sets the data for a specified packet property for one or more packets in the Stroke object.
Public method SetPoint Sets the Point structure at the specified index in a Stroke object.
Public method SetPoints Overloaded. Sets an array of Point structures at the specified indices in a Stroke object.
Public method Shear Shears the Stroke object by the specified horizontal and vertical factors.
Public method Split Splits the Stroke object at the specified location on the Stroke object and returns the new Stroke object.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Transform Overloaded. Applies a linear transformation to a Stroke object.

Top

Protected Methods

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

Top

See Also

Reference

Stroke Class
Microsoft.Ink Namespace
Ink
Cursor
Strokes