Compartilhar via


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 ICloneable
C# public class DrawingAttributes : Object,
ICloneable
Managed 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 Leave Site Determines whether two Object Leave Site instances are equal. Inherited from Object Leave Site.
Finalize Leave Site Allows an Object Leave Site to attempt to free resources and perform other cleanup operations before the Object Leave Site is reclaimed by garbage collection. Inherited from Object Leave Site.
GetHashCode Leave Site 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 Leave Site.
GetType Leave Site Gets the Type Leave Site of the current instance. Inherited from Object Leave Site.
ICloneable.Clone
MemberwiseClone Leave Site Creates a shallow copy of the current Object Leave Site. Inherited from Object Leave Site.
static (Shared in Visual Basic .NET)ReferenceEquals Leave Site Determines whether the specified Object Leave Site instances are the same instance. Inherited from Object Leave Site.
ToString Leave Site Returns a String Leave Site that represents the current Object Leave Site. Inherited from Object Leave Site.

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

Object Leave Site

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