Compartilhar via


Right Property (Automation Only)

Right Property (Automation Only)

Gets or sets the right position of the InkRectangle object.

Declaration

[C++]

[propget] HRESULT get_Right ([out, retval] long* Units);
[propput] HRESULT put_Right ([in] long Units);

[Microsoft® Visual Basic® 6.0]

Public Property Get Right() As Long
Public Property Let Right(ByVal theRight As Long)

Property Value

long The right position of the InkRectangle 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

Note: A point is within an InkRectangle if it lies on the Left or Top side or is within all four sides. A point on the Right or Bottom side is considered outside the rectangle.

The default value of this property is 0.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example set the Right property of an InkRectangle object, theInkRectangle, to 10.

Dim theInkRectangle As New InkRectangle
theInkRectangle.Right = 10

Applies To