InkOverlay.GetWindowInputRectangle Method
Gets the window rectangle, in pixels, within which ink is drawn.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Sub GetWindowInputRectangle ( _
<OutAttribute> ByRef windowInputRectangle As Rectangle _
)
'Usage
Dim instance As InkOverlay
Dim windowInputRectangle As Rectangle
instance.GetWindowInputRectangle(windowInputRectangle)
public void GetWindowInputRectangle (
out Rectangle windowInputRectangle
)
public:
void GetWindowInputRectangle (
[OutAttribute] Rectangle% windowInputRectangle
)
public void GetWindowInputRectangle (
/** @attribute OutAttribute() */ /** @ref */ Rectangle windowInputRectangle
)
Not applicable.
Parameters
- windowInputRectangle
The rectangle within which ink is drawn.
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.
Example
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);
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)
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkOverlay Class
InkOverlay Members
Microsoft.Ink Namespace
InkOverlay.SetWindowInputRectangle