Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

InkCollector.DefaultDrawingAttributes property

Gets or sets the default drawing attributes to use when drawing and displaying ink.

This property is read/write.

Syntax


HRESULT get_DefaultDrawingAttributes(
  [out, retval] IInkDrawingAttributes **CurrentAttributes
);

Property value

Error codes

NameMeaning
S_OK

Success.

E_POINTER

The DefaultDrawingAttributes parameter must be a valid pointer to an InkDrawingAttributes pointer.

E_FAIL

An unspecified error occurred.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

The drawing attributes specified with this property are the attributes that are assigned to a new cursor.

The default drawing attributes are as follows:

AntiAliased = TRUE

Color = BLACK (RGB(0,0,0)) if not in High Contrast mode; otherwise, Color=COLOR_WINDOWTEXT.

FitToCurve = FALSE

Height = 1 (in ink space units)

IgnorePressure = FALSE

PenTip = Ball

RasterOperation = CopyPen

Transparency = 0 (totally opaque)

Width = 53 (in ink space units)

To set different attributes on a new cursor, use the DrawingAttributes property of the IInkCursor object.

To change the drawing attributes of a single stroke, use the DrawingAttributes property of the IInkStrokeDisp object. To change the drawing attributes of a collection of strokes, call the ModifyDrawingAttributes method of the InkStrokes collection.

Note  The DefaultDrawingAttributes property contains the drawing attributes that all cursors use unless they set their own DrawingAttributes property. For example, a new IInkCursor object uses DefaultDrawingAttributes, and an old IInkCursor object on which the DrawingAttributes is set to NULL also uses DefaultDrawingAttributes.

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkCollector Class
DrawingAttributes Property
ModifyDrawingAttributes Method
IInkCursor Interface
InkDrawingAttributes Class
IInkStrokeDisp Interface
InkStrokes Collection

 

 

Community Additions

ADD
Show:
© 2015 Microsoft