Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetWindowInputRectangle(Rectangle)

InkPicture.GetWindowInputRectangle Method

InkPicture.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 InkPicture object, theInkPicture, which defaults to {0,0,0,0}.


using Microsoft.Ink;
//...
InkPicture theInkPicture = new InkPicture();
Rectangle theRect;
theInkPicture.GetWindowInputRectangle(out theRect);
				

[VB.NET]

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


Imports Microsoft.Ink
'...
Dim theInkPicture as New InkPicture()
Dim theRect as Rectangle
theInkPicture.GetWindowInputRectangle(theRect)
				

See Also

Show:
© 2015 Microsoft