• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Windows.App
    • AppQuery
  • Dapplo.Windows.Citrix
    • WinFrame
  • Dapplo.Windows.Citrix.Enums
    • ConnectStates
    • EventMask
    • InfoClasses
  • Dapplo.Windows.Citrix.Structs
    • ClientAddress
    • ClientDisplay
  • Dapplo.Windows.Clipboard
    • ClipboardMonitor
    • ClipboardNative
    • ClipboardUpdateInformation
    • StandardClipboardFormats
  • Dapplo.Windows.Com
    • ComProgIdAttribute
    • ComWrapper
    • DisposableCom
    • IDispatch
    • IDisposableCom<T>
    • IOleCommandTarget
    • IOleWindow
    • IUnknown
  • Dapplo.Windows.Common
    • Win32
    • WindowsVersion
  • Dapplo.Windows.Common.Enums
    • AdjacentTo
    • HResult
    • Win32Error
  • Dapplo.Windows.Common.Extensions
    • HResultExtensions
    • RectExensions
  • Dapplo.Windows.Common.Structs
    • POINT
    • RECT
    • RECTF
    • SIZE
  • Dapplo.Windows.Desktop
    • EnvironmentChangedEventArgs
    • EnvironmentMonitor
    • IInteropWindow
    • InteropWindow
    • InteropWindowExtensions
    • InteropWindowFactory
    • InteropWindowQuery
    • WindowScroller
    • WindowsEnumerator
    • WinEventHook
  • Dapplo.Windows.DesktopWindowsManager
    • Dwm
    • DwmBlurBehind
    • DwmBlurBehindFlags
    • DwmSetIconicLivePreviewFlags
    • DwmThumbnailProperties
    • DwmThumbnailPropertyFlags
    • DwmWindowAttributes
  • Dapplo.Windows.Dpi
    • BitmapScaleHandler
    • BitmapScaleHandler<TKey>
    • DpiAwareness
    • DpiAwarenessContext
    • DpiHandler
    • WinProcListener
  • Dapplo.Windows.Dpi.Enums
    • MonitorDpiType
  • Dapplo.Windows.Dpi.Forms
    • DpiAwareForm
    • FormsExtensions
  • Dapplo.Windows.Dpi.Wpf
    • WindowExtensions
  • Dapplo.Windows.Enums
    • InteropWindowCacheFlags
    • WinEventHookFlags
    • WinEvents
  • Dapplo.Windows.Gdi32
    • Gdi32Api
    • GdiExtensions
    • GdiPlusApi
  • Dapplo.Windows.Gdi32.Enums
    • BitmapCompressionMethods
    • ColorSpaceEnum
    • DeviceCaps
    • GdiPlusStatus
    • GpUnit
    • RasterOperations
  • Dapplo.Windows.Gdi32.SafeHandles
    • SafeCompatibleDcHandle
    • SafeDcHandle
    • SafeDeviceContextHandle
    • SafeDibSectionHandle
    • SafeHBitmapHandle
    • SafeObjectHandle
    • SafeRegionHandle
    • SafeSelectObjectHandle
    • SafeWindowDcHandle
  • Dapplo.Windows.Gdi32.Structs
    • BitfieldColorMask
    • BitmapFileHeader
    • BitmapInfoHeader
    • BlurParams
    • CieXyz
    • CieXyzTripple
  • Dapplo.Windows.Input
    • Hotkey
    • InputGenerator
    • KeyboardHook
    • KeyboardHookEventArgs
    • MouseHook
    • MouseHookEventArgs
  • Dapplo.Windows.Input.Enums
    • ExtendedKeyFlags
    • ExtendedMouseFlags
    • HookTypes
    • InputTypes
    • KeyEventFlags
    • MouseEventFlags
    • ScanCodes
    • VirtualKeyCodes
  • Dapplo.Windows.Input.Structs
    • HardwareInput
    • Input
    • InputUnion
    • KeyboardInput
    • KeyboardLowLevelHookStruct
    • MouseInput
    • MouseLowLevelHookStruct
  • Dapplo.Windows.Interop
    • DisposableCom
    • IDisposableCom<T>
  • Dapplo.Windows.Kernel32
    • Kernel32Api
    • PsApi
  • Dapplo.Windows.Kernel32.Enums
    • GlobalMemorySettings
    • ProcessAccessRights
    • ThreadAccess
    • WindowsProducts
    • WindowsProductTypes
    • WindowsSuites
  • Dapplo.Windows.Kernel32.Structs
    • OsVersionInfoEx
  • Dapplo.Windows.Messages
    • WindowsMessage
    • WindowsMessages
    • WinProcHandler
  • Dapplo.Windows.Multimedia
    • SoundSettings
    • SystemSounds
    • WinMm
  • Dapplo.Windows.Native
    • Shell32
    • Shell32.FolderType
    • Shell32.IconSize
  • Dapplo.Windows.Shell32
    • Shell32Api
  • Dapplo.Windows.Shell32.Enums
    • AppBarEdges
    • AppBarMessages
    • AppBarStates
  • Dapplo.Windows.Shell32.Structs
    • AppBarData
  • Dapplo.Windows.Structs
    • WinEventInfo
  • Dapplo.Windows.User32
    • User32Api
    • User32Api.EnumWindowsProc
  • Dapplo.Windows.User32.Enums
    • ClassLongIndex
    • CursorInfoFlags
    • DesktopAccessRight
    • ExtendedWindowStyleFlags
    • GetWindowCommands
    • MonitorFrom
    • MonitorInfoFlags
    • ObjectIdentifiers
    • ObjectStates
    • PrintWindowFlags
    • RegionResults
    • ScrollBarCommands
    • ScrollBarStateIndexes
    • ScrollBarTypes
    • ScrollInfoMask
    • ScrollModes
    • SendMessageTimeoutFlags
    • ShowWindowCommands
    • SysCommands
    • SystemMetric
    • SystemParametersInfoActions
    • SystemParametersInfoBehaviors
    • TitleBarInfoIndexes
    • WindowLongIndex
    • WindowPlacementFlags
    • WindowPos
    • WindowStyleFlags
  • Dapplo.Windows.User32.SafeHandles
    • SafeCurrentInputDesktopHandle
    • SafeIconHandle
  • Dapplo.Windows.User32.Structs
    • AnimationInfo
    • CursorInfo
    • DisplayInfo
    • IconInfo
    • MonitorInfoEx
    • ScrollBarInfo
    • ScrollInfo
    • TitleBarInfoEx
    • WindowInfo
    • WindowPlacement

Struct RECT

See RECT struct

Namespace: Dapplo.Windows.Common.Structs
Assembly: Dapplo.Windows.Common.dll
Syntax
public struct RECT

Constructors

| Improve this Doc View Source

RECT(POINT, SIZE)

Constructor from location and size

Declaration
public RECT(POINT location, SIZE size)
Parameters
Type Name Description
POINT location

POINT

SIZE size

SIZE

| Improve this Doc View Source

RECT(Int32, Int32, SIZE)

Constructor from left, right and size

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

int

System.Int32 top

int

SIZE size

SIZE

| Improve this Doc View Source

RECT(Int32, Int32, Int32, Int32)

Constructor from left, right, top, bottom

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

int

System.Int32 top

int

System.Int32 right

int

System.Int32 bottom

int

Properties

| Improve this Doc View Source

Bottom

Bottom of the rectangle

Declaration
public int Bottom { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

BottomLeft

Coordinates of the bottom left

Declaration
public POINT BottomLeft { get; }
Property Value
Type Description
POINT
| Improve this Doc View Source

BottomRight

Coordinates of the bottom right

Declaration
public POINT BottomRight { get; }
Property Value
Type Description
POINT
| Improve this Doc View Source

Empty

Empty RECT

Declaration
public static RECT Empty { get; }
Property Value
Type Description
RECT
| Improve this Doc View Source

Height

Heigh of the RECT

Declaration
public int Height { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsEmpty

Checks if this RECT is empty

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
System.Boolean

true when empty

| Improve this Doc View Source

Left

Left value of the rectangle

Declaration
public int Left { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Location

Location (for this RECT

Declaration
public POINT Location { get; }
Property Value
Type Description
POINT
| Improve this Doc View Source

Right

Right of the rectangle

Declaration
public int Right { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Size

Size for this RECT

Declaration
public SIZE Size { get; }
Property Value
Type Description
SIZE
| Improve this Doc View Source

SizeOf

SizeOf for this struct

Declaration
public static int SizeOf { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Top

Top of the rectangle

Declaration
public int Top { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TopLeft

Coordinates of the top left

Declaration
public POINT TopLeft { get; }
Property Value
Type Description
POINT
| Improve this Doc View Source

TopRight

Coordinates of the top right

Declaration
public POINT TopRight { get; }
Property Value
Type Description
POINT
| Improve this Doc View Source

Width

Width of the RECT

Declaration
public int Width { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

X

X value

Declaration
public int X { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Y

X location of the rectangle

Declaration
public int Y { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Equals(RECT)

Equalss

Declaration
public bool Equals(RECT rectangle)
Parameters
Type Name Description
RECT rectangle
Returns
Type Description
System.Boolean

bool

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

ToString()

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

Operators

| Improve this Doc View Source

Equality(RECT, RECT)

Equals for RECT

Declaration
public static bool operator ==(RECT rectangle1, RECT rectangle2)
Parameters
Type Name Description
RECT rectangle1

RECT

RECT rectangle2

RECT

Returns
Type Description
System.Boolean

bool true if they are equal

| Improve this Doc View Source

Implicit(RECT to Rect)

Cast RECT to Rect

Declaration
public static implicit operator Rect(RECT rectangle)
Parameters
Type Name Description
RECT rectangle

RECT

Returns
Type Description
Rect

Rect

| Improve this Doc View Source

Implicit(RECT to Rectangle)

Cast RECT to Rectangle

Declaration
public static implicit operator Rectangle(RECT rectangle)
Parameters
Type Name Description
RECT rectangle

RECT

Returns
Type Description
Rectangle

Rectangle

| Improve this Doc View Source

Implicit(Rect to RECT)

Cast Rect to RECT

Declaration
public static implicit operator RECT(Rect rectangle)
Parameters
Type Name Description
Rect rectangle

Rect

Returns
Type Description
RECT

RECT

| Improve this Doc View Source

Implicit(Rectangle to RECT)

Cast Rectangle to RECT

Declaration
public static implicit operator RECT(Rectangle rectangle)
Parameters
Type Name Description
Rectangle rectangle
Returns
Type Description
RECT

RECT

| Improve this Doc View Source

Inequality(RECT, RECT)

Not is operator

Declaration
public static bool operator !=(RECT rectangle1, RECT rectangle2)
Parameters
Type Name Description
RECT rectangle1
RECT rectangle2
Returns
Type Description
System.Boolean

bool

Extension Methods

RectExensions.Contains(RECT, POINT)
RectExensions.Contains(RECT, RECT)
RectExensions.HasOverlap(RECT, RECT)
RectExensions.IsAdjacent(RECT, RECT)
RectExensions.IsDockedToLeftOf(RECT, RECT)
RectExensions.IsDockedToRightOf(RECT, RECT)
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo