Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

rect (Structures)
 
.
Summary
TODO - a short description

C# Signature:

[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
    public int left;
    public int top;
    public int right;
    public int bottom;

    public RECT(int left, int top, int right, int bottom)
    {
        this.left = left;
        this.top = top;
        this.right = right;
        this.bottom = bottom;
    }

    public Rectangle ToRectangle
    {
        get
        {
            return new Rectangle(this.left, this.top, this.right-this.left, this.bottom-this.top);
        }
    }
}

VB .NET Signature:

<StructLayout(LayoutKind.Sequential)> _
Public Structure RECT()
    Left As Integer
    Right As Integer
    Top As Integer
    Bottom As Integer
End Structure

Public Function ToRectangle() As Rectangle
    Return New Rectangle(RECT.Left, RECT.Top, RECT.Right-RECT.Left, RECT.Bottom-RECT.Top)
End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation
RECT on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions