IInkDrawingAttributes::Width
4/8/2010
Gets or sets the IInkDrawingAttributes property for the x–axis dimension, or width, of the pen tip when drawing ink.
Syntax
[propget] HRESULT get_Width([out, retval] float *CurrentWidth);
[propput] HRESULT put_Width([in] float NewWidth
);
Parameters
CurrentWidth
The x–axis dimension, or width, of the pen tip in HIMETRIC units when drawing ink.The default pen width is 53 (in HIMETRIC units).
NewWidth
The x–axis dimension, or width, of the pen tip when drawing ink.This property is read/write.
Return Value
HRESULT value | Description |
---|---|
S_OK |
Success. |
E_POINTER |
Parameter pointer is NULL or invalid. |
E_INK_EXCEPTION |
An exception occurred inside the method. |
E_INVALIDARG |
The width of the pen is less than 0. |
E_UNEXPECTED |
Unexpected parameter or property type. |
Remarks
Precision is limited to one one-thousandth of a HIMETRIC unit (three digits to the right of the decimal point). For example, if you specify a value of 2.0006, the most precise measurement is 2.001.
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 |