Share via


InkPicture.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 InkPicture 
Dim windowInputRectangle As Rectangle

instance.GetWindowInputRectangle(windowInputRectangle)
public void GetWindowInputRectangle(
    out Rectangle windowInputRectangle
)
public:
void GetWindowInputRectangle(
    [OutAttribute] Rectangle% windowInputRectangle
)
public function GetWindowInputRectangle(
    windowInputRectangle : Rectangle
)

Parameters

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

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

[C#]

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

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

[Visual Basic]

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

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkPicture Class

InkPicture Members

Microsoft.Ink Namespace

InkPicture.SetWindowInputRectangle