Share via


InkEdit.DrawingAttributes Property

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property DrawingAttributes As DrawingAttributes
'Usage
Dim instance As InkEdit 
Dim value As DrawingAttributes 

value = instance.DrawingAttributes

instance.DrawingAttributes = value
[BrowsableAttribute(false)]
public DrawingAttributes DrawingAttributes { get; set; }
[BrowsableAttribute(false)]
public:
property DrawingAttributes^ DrawingAttributes {
    DrawingAttributes^ get ();
    void set (DrawingAttributes^ value);
}
public function get DrawingAttributes () : DrawingAttributes 
public function set DrawingAttributes (value : DrawingAttributes)

Property Value

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

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

In this example, the DrawingAttributes property is modified to change the color and the width of the rendered ink.

mInkEdit.DrawingAttributes.Color = Color.Blue
mInkEdit.DrawingAttributes.Width = 106
mInkEdit.DrawingAttributes.Color = Color.Blue;
mInkEdit.DrawingAttributes.Width = 106;

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkEdit Class

InkEdit Members

Microsoft.Ink Namespace

DrawingAttributes

InkCollector.DefaultDrawingAttributes