DrawingAttributes Class
DrawingAttributes Class |
Represents the attributes that are applied to ink when it is drawn.
Definition
Visual Basic .NET Public Class DrawingAttributes
Inherits Object
Implements ICloneableC# public class DrawingAttributes : Object,
ICloneableManaged C++ public __gc class DrawingAttributes : public Object,
ICloneable
Members Table
The following table lists the members exposed by the object.
Methods
Method Description Clone Returns a copy of this DrawingAttributes object. DrawingAttributes Initializes a new instance of the DrawingAttributes class. Equals Determines whether two Object instances are equal. Inherited from Object . 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 . GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Inherited from Object . GetType Gets the Type of the current instance. Inherited from Object . ICloneable.Clone MemberwiseClone Creates a shallow copy of the current Object . Inherited from Object . ReferenceEquals Determines whether the specified Object instances are the same instance. Inherited from Object . ToString Returns a String that represents the current Object . Inherited from Object . Properties
Property Description AntiAliased Gets or sets the value that indicates whether a stroke is antialiased. Color Gets or sets the color of the ink that is drawn with this DrawingAttributes object. ExtendedProperties Gets the collection of application-defined data. FitToCurve Gets or sets the value that indicates whether Bezier smoothing is used to render ink. Height Gets or sets the y-axis dimesion, or height, of the pen tip when drawing ink. IgnorePressure Gets or sets the value that indicates whether ink gets wider with increased pressure of the pen tip on the tablet surface. PenTip Gets or sets a value that indicates which pen tip to use when drawing ink that is associated with this DrawingAttributes object. RasterOperation Gets or sets a value that defines how the colors of the pen and background interact. Transparency Gets or sets a value that indicates the transparency value of ink. Width Gets or sets the y-axis dimension, or width, of the pen tip when drawing ink.
Inheritance Hierarchy
DrawingAttributes
Remarks
These drawing attributes can be associated with a stroke or a cursor and specify settings such as color, width, and transparency.
To specify the drawing attributes of a stroke, use the DrawingAttributes property of the Stroke object. To specify the drawing attributes of all of the strokes within a collection of strokes, call the ModifyDrawingAttributes method of the Strokes collection.
Each InkCollector object, InkOverlay object, and InkPicture control can specify a different set of drawing attributes for the same cursor. Use the DrawingAttributes property of the Cursor object to get or set the drawing attributes of a cursor.
Class Information
Namespace Microsoft.Ink Assembly Microsoft.Ink (microsoft.ink.dll) Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8
See Also