InkPicture.SizeMode property

Gets or sets how the InkPicture control handles image placement and sizing.

This property is read/write.

Syntax


HRESULT put_SizeMode(
  [in]          InkPictureSizeMode  smNewSizeMode
);

HRESULT get_SizeMode(
  [out, retval] InkPictureSizeMode *smSizeMode
);

Property value

TBD

Error codes

NameMeaning
S_OK

Success.

Remarks

Valid values for this property are taken from the InkPictureSizeMode enumeration. By default, in IPSM_Normal mode, the picture is positioned in the upper-left corner of the InkPicture control, and any part of the image too big for the InkPicture control is clipped. Using the IPSM_StretchImage value causes the picture to stretch to fit the control.

Using the IPSM_AutoSize value causes the control to resize to always fit the picture. Using the IPSM_CenterImage value causes the picture to be centered in the control.

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

InkPicture
InkPictureSizeMode

 

 

Show: