Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Adds a specified IInkStrokescollection into this IInkDispobject at a specified rectangle.
Syntax
HRESULT AddStrokesAtRectangle ( IInkStrokes* strokes, IInkRectangle* rectangle ); |
Parameters
- strokes
-
[in] Specifies the strokes to add to the ink. These source strokes are appended to this IInkDispobject.
- rectangle
-
[in] Specifies the IInkRectanglein ink space coordinates where the strokes are added. A run–time error occurs if the coordinates of the rectangle are {0,0,0,0}.
Return Value
- S_OK
-
Success.
- E_POINTER
-
A parameter contained an invalid pointer.
- E_FAIL
-
An unspecified error occurred.
- E_INK_INCOMPATIBLE_OBJECT
-
A pointer does not point at a valid object.
- E_INK_EXCEPTION
-
An exception occurred inside the method.
- E_INVALIDARG
-
The rectangle's top and bottom are equal.
Remarks
When inserted, the strokes are scaled from the bounding box of the strokes to the rectangle.
This method can be used to copy strokes within a single IInkDispobject. The source ink strokes do not have to come from another IInkDispobject.
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 |