• 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 RECTF

See RectF class

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

Constructors

| Improve this Doc View Source

RECTF(Single, Single, Single, Single)

Constructor from x,y,width,height

Declaration
public RECTF(float x, float y, float width, float height)
Parameters
Type Name Description
System.Single x

int

System.Single y

int

System.Single width

int

System.Single height

int

Properties

| Improve this Doc View Source

Bottom

Bottom of the rectangle

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

Empty

Empty RECT

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

Height

Heigh of the RECT

Declaration
public float Height { get; set; }
Property Value
Type Description
System.Single
| 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 float Left { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Location

Location for this RECT

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

Right

Right of the rectangle

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

Size

Size for this RECT

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

Top

Top of the rectangle

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

Width

Width of the RECT

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

X

X value

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

Y

X location of the rectangle

Declaration
public float Y { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Contains(POINT)

Test if this RECT contains the specified POINT

Declaration
public bool Contains(POINT point)
Parameters
Type Name Description
POINT point

POINT

Returns
Type Description
System.Boolean

true if it contains

| Improve this Doc View Source

Equals(RECTF)

Equalss

Declaration
public bool Equals(RECTF rectangle)
Parameters
Type Name Description
RECTF 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(RECTF, RECTF)

Equals for RECTF

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

RECTF

RECTF rectangle2

RECTF

Returns
Type Description
System.Boolean

bool true if they are equal

| Improve this Doc View Source

Implicit(RECTF to Rect)

Cast RECTF to Rect

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

RECT

Returns
Type Description
Rect

Rect

| Improve this Doc View Source

Implicit(RECTF to Rectangle)

Cast RECTF to Rectangle

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

RECT

Returns
Type Description
Rectangle

Rectangle

| Improve this Doc View Source

Implicit(RECTF to RectangleF)

Cast RECTF to RectangleF

Declaration
public static implicit operator RectangleF(RECTF rectangle)
Parameters
Type Name Description
RECTF rectangle

RECT

Returns
Type Description
RectangleF

Rectangle

| Improve this Doc View Source

Implicit(Rect to RECTF)

Cast Rect to RECTF

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

Rect

Returns
Type Description
RECTF

RECTF

| Improve this Doc View Source

Implicit(Rectangle to RECTF)

Cast Rectangle to RECTF

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

Rectangle

Returns
Type Description
RECTF

RECTF

| Improve this Doc View Source

Implicit(RectangleF to RECTF)

Cast RectangleF to RECTF

Declaration
public static implicit operator RECTF(RectangleF rectangle)
Parameters
Type Name Description
RectangleF rectangle

RectangleF

Returns
Type Description
RECTF

RECTF

| Improve this Doc View Source

Inequality(RECTF, RECTF)

Not is operator

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

RECTF

RECTF rectangle2

RECTF

Returns
Type Description
System.Boolean

bool

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo