Share via


IInkDrawingAttributes::Clone

4/8/2010

Creates a duplicate IInkDrawingAttributes object.

Syntax

HRESULT Clone(
    [out, retval] IInkDrawingAttributes **DrawingAttributes
);

Parameters

  • DrawingAttributes
    Returns the newly created IInkDrawingAttributes object.

Return Value

HRESULT value Description

S_OK

Success.

E_OUTOFMEMORY

Cannot allocate memory to complete the operation.

E_FAIL

An unspecified error occurred.

E_POINTER

A parameter contained an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

REGDB_CLASSNOTREG

The IInkDrawingAttributes object was not registered.

E_UNEXPECTED

Unexpected parameter or property type.

Remarks

The Clone method returns an exact copy of the original IInkDrawingAttributes object. The original IInkDrawingAttributes object and the copy have no relationship.

Typically, you clone a master copy of the drawing attributes, modify one or more of the attributes, and call the IInkStrokes::ModifyDrawingAttributes method to use the modified drawing attributes.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference