Share via


eM21 Property (Automation Only)

eM21 Property (Automation Only)

Returns or sets the element in the second row, first column of the affine transform matrix that is represented by an InkTransform object.

Declaration

[C++]

[propput] HRESULT put_eM21 ([in] float eM21);
[propget] HRESULT get_eM21 ([out, retval] float* eM21);

[Microsoft® Visual Basic® 6.0]

Public Property Get eM21() As Single
Public Property Let eM21(ByVal theUnit As Single)

Property Value

float Returns or sets the element in the second row, first column of the affine transform matrix that is represented by an InkTransform object.

This property is read/write.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER The parameter pointer was invalid.
E_INK_EXCEPTION An exception occurred inside the method.

Remarks

In Microsoft Visual Basic 6.0, this property is hidden, which means it does not appear in the Object Browser or in the IntelliSense menus. However, it can still be accessed by using the eM21 name.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example sets the values of the eM11, eM12, eM21, eM22, eDx, and eDy properties. The new values for the eM11, eM12, eM21, and eM22 properties would correspond to a 90-degree counter-clockwise linear transformation. The new value for the eDx property would correspond to a translation of 4 units in the x direction, and the new value for the eDy property would correspond to a translation of 5 units in the y direction.

Dim theInkTransform As New InkTransform
theInkTransform.eM11 = 0!    'eM11 default value is 1
theInkTransform.eM12 = 1!    'eM12 default value is 0
theInkTransform.eM21 = -1!   'eM21 default value is 0
theInkTransform.eM22 = 0!    'eM22 default value is 1
theInkTransform.eDx = 4!     'eDx default value is 0
theInkTransform.eDy = 5!     'eDy default value is 0

Applies To