Share via


InkCollector.GetWindowInputRectangle Method

InkCollector.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 in 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 InkCollector object, theInkCollector, which defaults to {0,0,0,0}.

using Microsoft.Ink;
//...
InkCollector theInkCollector = new InkCollector();
Rectangle theRect;
theInkCollector.GetWindowInputRectangle(out theRect);
                

[VB.NET]

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

Imports Microsoft.Ink
'...
Dim theInkCollector as New InkCollector()
Dim theRect as Rectangle
theInkCollector.GetWindowInputRectangle(theRect)
                

See Also