Compartilhar via


Top Property (Automation Only)

Top Property (Automation Only)

Gets or sets the top position of the InkRectangle object.

Declaration

[C++]

[C++]
[propget] HRESULT get_Top([out, retval] long *Units);
[propput] HRESULT put_Top([in] long Units);

[Microsoft® Visual Basic® 6.0]

[Visual Basic]
Public Property Get Top() As Long
Public Property Let Top( _
    ByVal Units As Long)

Property Value

InkRectangle The top 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 sets the Top property of an InkRectangle, theInkRectangle, object to 10.

[Visual Basic]
Dim theInkRectangle As New InkRectangle
theInkRectangle.Top = 10

Applies To