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