InkEdit.DrawingAttributes Property

InkEdit.DrawingAttributes Property

Gets or sets the drawing attributes to apply to ink as it is drawn.

Definition

Visual Basic .NET Public Property DrawingAttributes As DrawingAttributes
C# public DrawingAttributes DrawingAttributes { get; set; }
Managed C++ public: __property DrawingAttributes* get_DrawingAttributes();
public: __property void set_DrawingAttributes(DrawingAttributes*);

Property Value

Microsoft.Ink.DrawingAttributes. The DrawingAttributes object to apply to ink as it is drawn. This property cannot be set to null (Nothing in Microsoft® Visual Basic® .NET).

This property is read/write. This property has no default value.

Remarks

The DrawingAttributes property specifies the appearance of ink. For example, you can specify the width or color of ink.

The DrawingAttributes property specifies the drawing attributes for ink as it is drawn and before recognition occurs. In this way the InkEdit.DrawingAttributes property is different from the Stroke.DrawingAttributes property, which specifies the attributes for ink that was previously collected. The InkEdit.DrawingAttributes property is more analogous to the InkPicture.DefaultDrawingAttributes property; however, with InkEdit.DrawingAttributes the FitToCurve property is set to true by default.

Examples

[C#]

This C# example returns the drawing attributes of the first cursor in the Cursors collection of an InkCollector object.

using Microsoft.Ink;
//. . .
Microsoft.Ink.DrawingAttributes theDrawingAttributes;
Microsoft.Ink.Cursor theCursor = theInkCollector.Cursors[0];
theDrawingAttributes = theCursor.DrawingAttributes;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example returns the drawing attributes of the first cursor in the Cursors collection of an InkCollector object.

Imports Microsoft.Ink
'. . .Dim theDrawingAttributes As DrawingAttributes
Dim theCursor as Cursor = theInkCollector.Cursors(0)
theDrawingAttributes = theCursor.DrawingAttributes

See Also