• 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

Interface IInteropWindow

This is the interface of all classes which represent a native window

Namespace: Dapplo.Windows.Desktop
Assembly: Dapplo.Windows.dll
Syntax
public interface IInteropWindow

Properties

| Improve this Doc View Source

CanScroll

Specifies if a WindowScroller can work with this window

Declaration
bool ? CanScroll { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

Caption

Return the title of the window, if any

Declaration
string Caption { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Children

Returns the children of this window

Declaration
IEnumerable<IInteropWindow> Children { get; set; }
Property Value
Type Description
IEnumerable<IInteropWindow>
| Improve this Doc View Source

Classname

string with the name of the internal class for the window

Declaration
string Classname { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Handle

Handle (ID) of the window

Declaration
IntPtr Handle { get; }
Property Value
Type Description
IntPtr
| Improve this Doc View Source

HasChildren

Test if there are any children

Declaration
bool HasChildren { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HasClassname

Does the window have a classname?

Declaration
bool HasClassname { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HasParent

Does this window have parent?

Declaration
bool HasParent { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Info

WindowInfo for the Window

Declaration
WindowInfo? Info { get; set; }
Property Value
Type Description
System.Nullable<WindowInfo>
| Improve this Doc View Source

IsMaximized

Returns true if the window is maximized

Declaration
bool ? IsMaximized { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

IsMinimized

Returns true if the window is minimized

Declaration
bool ? IsMinimized { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

IsVisible

Returns true if the window is visible

Declaration
bool ? IsVisible { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

Parent

The handle for the parent to which this window belongs

Declaration
IntPtr? Parent { get; set; }
Property Value
Type Description
System.Nullable<IntPtr>
| Improve this Doc View Source

ParentWindow

The actualy IInteropWindow for the parent. This is filled when this window was retrieved via parent.GetChildren or parent.GetZOrderChildrend

Declaration
IInteropWindow ParentWindow { get; set; }
Property Value
Type Description
IInteropWindow
| Improve this Doc View Source

Placement

WindowPlacement for the Window

Declaration
WindowPlacement? Placement { get; set; }
Property Value
Type Description
System.Nullable<WindowPlacement>
| Improve this Doc View Source

ProcessId

Get the process ID this window belongs to

Declaration
int ? ProcessId { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
| Improve this Doc View Source

Text

Return the text (not title) of the window, if any

Declaration
string Text { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Dump(InteropWindowCacheFlags, StringBuilder, String)

Dump the information in the InteropWindow for debugging

Declaration
StringBuilder Dump(InteropWindowCacheFlags cacheFlags = null, StringBuilder dump = null, string indentation = "")
Parameters
Type Name Description
InteropWindowCacheFlags cacheFlags

InteropWindowCacheFlags to specify what to dump

StringBuilder dump

StringBuilder to dump to

System.String indentation

int

Returns
Type Description
StringBuilder

StringBuilder

Extension Methods

AppQuery.IsApp(IInteropWindow)
AppQuery.IsAppLauncher(IInteropWindow)
AppQuery.IsGutter(IInteropWindow)
AppQuery.IsMetroApp(IInteropWindow)
AppQuery.IsWin10App(IInteropWindow)
AppQuery.IsWin8App(IInteropWindow)
InteropWindowQuery.GetLinkedWindows(IInteropWindow)
InteropWindowQuery.IsTopLevel(IInteropWindow, Boolean)
InteropWindowExtensions.Exists(IInteropWindow)
InteropWindowExtensions.Fill(IInteropWindow, InteropWindowCacheFlags)
InteropWindowExtensions.GetCaption(IInteropWindow, Boolean)
InteropWindowExtensions.GetChildren(IInteropWindow, Boolean)
InteropWindowExtensions.GetClassname(IInteropWindow, Boolean)
InteropWindowExtensions.GetInfo(IInteropWindow, Boolean)
InteropWindowExtensions.GetParent(IInteropWindow, Boolean)
InteropWindowExtensions.GetParentWindow(IInteropWindow, Boolean)
InteropWindowExtensions.GetPlacement(IInteropWindow, Boolean)
InteropWindowExtensions.GetProcessId(IInteropWindow, Boolean)
InteropWindowExtensions.GetRegion(IInteropWindow)
InteropWindowExtensions.GetText(IInteropWindow, Boolean)
InteropWindowExtensions.GetWindowScroller(IInteropWindow, ScrollBarTypes, Boolean)
InteropWindowExtensions.GetZOrderedChildren(IInteropWindow, Boolean)
InteropWindowExtensions.IsDockedToLeftOf(IInteropWindow, IInteropWindow, Func<IInteropWindow, RECT>)
InteropWindowExtensions.IsDockedToRightOf(IInteropWindow, IInteropWindow, Func<IInteropWindow, RECT>)
InteropWindowExtensions.IsMaximized(IInteropWindow, Boolean)
InteropWindowExtensions.IsMinimized(IInteropWindow, Boolean)
InteropWindowExtensions.IsVisible(IInteropWindow, Boolean)
InteropWindowExtensions.Maximized(IInteropWindow)
InteropWindowExtensions.Minimize(IInteropWindow)
InteropWindowExtensions.Restore(IInteropWindow)
InteropWindowExtensions.SetExtendedStyle(IInteropWindow, ExtendedWindowStyleFlags)
InteropWindowExtensions.SetPlacement(IInteropWindow, WindowPlacement)
InteropWindowExtensions.SetStyle(IInteropWindow, WindowStyleFlags)
InteropWindowExtensions.ToForegroundAsync(IInteropWindow, Boolean)
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo