GetRectangle Method (Automation Only)
GetRectangle Method (Automation Only) |
Gets the elements of the InkRectangle object in a single call.
Declaration
[C++]
HRESULT GetRectangle (
[out] long* Top,
[out] long* Left,
[out] long* Bottom,
[out] long* Right
);
[Microsoft® Visual Basic® 6.0]
Sub GetRectangle( _
Top As Long, _
Left As Long, _
Bottom As Long, _
Right As Long _
)
Parameters
Top
[out] The top of the rectangle.
Left
[out] The left edge of the rectangle.
Bottom
[out] The bottom of the rectangle.
Right
[out] The right edge of the rectangle.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
E_POINTER | A parameter contained an invalid pointer. |
E_INK_EXCEPTION | An exception occurred inside the method. |
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example gets the property values from an InkRectangle object, theInkRectangle.
Dim theTop As Long
Dim theLeft As Long
Dim theBottom As Long
Dim theRight As Long
theInkRectangle.GetRectangle theTop, theLeft, theBottom, theRight