InkOverlay.GetWindowInputRectangle Method

InkOverlay.GetWindowInputRectangle Method

Gets the window rectangle, in pixels, within which ink is drawn.

Definition

Visual Basic .NET Public Sub GetWindowInputRectangle( _
ByRef windowInputRectangle As Rectangle _
)
C# public void GetWindowInputRectangle(
out Rectangle windowInputRectangle
);
Managed C++ public: void GetWindowInputRectangle(
Rectangle **windowInputRectangle
);

Parameters

windowInputRectangle System.Drawing.Rectangle. The rectangle within which ink is drawn.

Exceptions

ObjectDisposedException Leave Site:

Remarks

By default, the window input rectangle is set to {0,0,0,0}. This default rectangle maps to the size of the entire window.

If you call GetWindowInputRectangle before you call SetWindowInputRectangle, this method gets a rectangle with the default coordinates.

Examples

[C#]

This C# example gets the window input rectangle of a new InkOverlay object, theInkOverlay, which defaults to {0,0,0,0}.

using Microsoft.Ink;
//...
InkOverlay theInkOverlay = new InkOverlay();
Rectangle theRect;
theInkOverlay.GetWindowInputRectangle(out theRect);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the window input rectangle of a new InkOverlay object, theInkOverlay, which defaults to {0,0,0,0}.

Imports Microsoft.Ink
'...
Dim theInkOverlay as New InkOverlay()
Dim theRect as Rectangle
theInkOverlay.GetWindowInputRectangle(theRect)
                

See Also