skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • Functional UI Testing
    • RESTful API Testing
    • Load Testing
    • Remote Test Execution
    • Agile Teams
    • Web Test Automation
    • Desktop Test Automation
    • Responsive UI Testing
    • Continuous Testing
  • Training
    • Docs and Support
    • Documentation
    • Virtual Classroom
    • Videos
    • Blogs
    • Webinars
    • Whitepapers
    • Case Studies
    • Feedback Portal
    • Technical Support
    • What’s New
    • Roadmap
    • Release Notes
    • Trust Center
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Request a demo Try now

Class WindowManager

Inheritance
System.Object
WindowManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.Common.Win32
Assembly: ArtOfTest.WebAii.dll

Syntax

public class WindowManager

Constructors

WindowManager()

Declaration
public WindowManager()

Properties

IEInstances

Declaration
public static List<Window> IEInstances { get; }
Property Value
System.Collections.Generic.List<Window>

Items

Declaration
public WindowCollection Items { get; }
Property Value
WindowCollection

VisibleWindowsOnly

Declaration
public bool VisibleWindowsOnly { get; set; }
Property Value
System.Boolean

Methods

AppendWindows(IntPtr)

Declaration
public void AppendWindows(IntPtr parentHwnd)
Parameters
System.IntPtr parentHwnd

CenterSize(Size, Rectangle)

Declaration
public static Point CenterSize(Size sizeToCenter, Rectangle areaToCenterIn)
Parameters
System.Drawing.Size sizeToCenter

System.Drawing.Rectangle areaToCenterIn

Returns
System.Drawing.Point

FindWindowRecursively(IntPtr, String, Boolean, Int32)

Declaration
public static Window FindWindowRecursively(IntPtr parentHwnd, string caption, bool partialCaption, int delaySearchPeriod)
Parameters
System.IntPtr parentHwnd

System.String caption

System.Boolean partialCaption

System.Int32 delaySearchPeriod

Returns
Window

FindWindowRecursively(IntPtr, String, Boolean, Int32, Int32)

Declaration
public static Window FindWindowRecursively(IntPtr parentHwnd, string caption, bool partialCaption, int delaySearchPeriod, int maxDepth)
Parameters
System.IntPtr parentHwnd

System.String caption

System.Boolean partialCaption

System.Int32 delaySearchPeriod

System.Int32 maxDepth

Returns
Window

FindWindowRecursively(IntPtr, String, Int32)

Declaration
public static Window FindWindowRecursively(IntPtr parentHwnd, string className, int delaySearchPeriod)
Parameters
System.IntPtr parentHwnd

System.String className

System.Int32 delaySearchPeriod

Returns
Window

FindWindowsRecursively(IntPtr, List<String>, Int32, Int32)

Declaration
public static IList<Window> FindWindowsRecursively(IntPtr parentHwnd, List<string> classNames, int delaySearchPeriod, int maxDepth = 2147483647)
Parameters
System.IntPtr parentHwnd

System.Collections.Generic.List<System.String> classNames

System.Int32 delaySearchPeriod

System.Int32 maxDepth

Returns
System.Collections.Generic.IList<Window>

GetActiveScreen()

Declaration
public static Screen GetActiveScreen()
Returns
System.Windows.Forms.Screen

GetAllWindows(Process)

Declaration
public void GetAllWindows(Process process)
Parameters
System.Diagnostics.Process process

GetProcessDialogFrameWindows(Int32)

Declaration
public static IEnumerable<Window> GetProcessDialogFrameWindows(int processId)
Parameters
System.Int32 processId

Returns
System.Collections.Generic.IEnumerable<Window>

GetWindows()

Declaration
public void GetWindows()

GetWindows(Process)

Declaration
public void GetWindows(Process process)
Parameters
System.Diagnostics.Process process

GetWindows(IntPtr)

Declaration
public void GetWindows(IntPtr parentHwnd)
Parameters
System.IntPtr parentHwnd

RecommendSize(Rectangle, Size)

Declaration
public static Rectangle RecommendSize(Rectangle desiredSize, Size minSize)
Parameters
System.Drawing.Rectangle desiredSize

System.Drawing.Size minSize

Returns
System.Drawing.Rectangle

TileWindows(Window, Window, TileWindowsOption, Size)

Declaration
public static void TileWindows(Window window1, Window window2, TileWindowsOption option, Size window1MinSize)
Parameters
Window window1

Window window2

TileWindowsOption option

System.Drawing.Size window1MinSize

Getting Started
  • Getting Started
  • Videos
  • Whats New
  • Roadmap
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.