menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct RECT - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Struct RECT

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    Namespace: Syncfusion.Windows.Forms.Tools.Win32API
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public struct RECT

    Constructors

    RECT(Int32, Int32, Int32, Int32)

    Declaration
    public RECT(int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Int32 left
    System.Int32 top
    System.Int32 right
    System.Int32 bottom

    Fields

    bottom

    Declaration
    public int bottom
    Field Value
    Type
    System.Int32

    left

    Declaration
    public int left
    Field Value
    Type
    System.Int32

    right

    Declaration
    public int right
    Field Value
    Type
    System.Int32

    top

    Declaration
    public int top
    Field Value
    Type
    System.Int32

    Properties

    Height

    Declaration
    public int Height { get; }
    Property Value
    Type
    System.Int32

    Size

    Declaration
    public Size Size { get; }
    Property Value
    Type
    System.Drawing.Size

    TopLeft

    Declaration
    public Point TopLeft { get; }
    Property Value
    Type
    System.Drawing.Point

    Width

    Declaration
    public int Width { get; }
    Property Value
    Type
    System.Int32

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    Explicit(Rectangle to RECT)

    Declaration
    public static explicit operator RECT(Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect
    Returns
    Type
    RECT

    Implicit(RECT to Rectangle)

    Declaration
    public static implicit operator Rectangle(RECT rect)
    Parameters
    Type Name Description
    RECT rect
    Returns
    Type
    System.Drawing.Rectangle

    Implicit(RECT to Size)

    Declaration
    public static implicit operator Size(RECT rect)
    Parameters
    Type Name Description
    RECT rect
    Returns
    Type
    System.Drawing.Size
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved