Class InteropWindow
Information about a native window
Note: This is a dumb container, and doesn't retrieve anything about the window itself
Inheritance
System.Object
InteropWindow
Assembly: Dapplo.Windows.dll
Syntax
public class InteropWindow : IEquatable<IInteropWindow>, IInteropWindow
Properties
|
Improve this Doc
View Source
Specifies if a WindowScroller can work with this window
Declaration
public bool ? CanScroll { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Implements
|
Improve this Doc
View Source
Caption
Return the title of the window, if any
Declaration
public string Caption { get; set; }
Property Value
Type |
Description |
System.String |
|
Implements
|
Improve this Doc
View Source
Children
Returns the children of this window
Declaration
public IEnumerable<IInteropWindow> Children { get; set; }
Property Value
Implements
|
Improve this Doc
View Source
Classname
string with the name of the internal class for the window
Declaration
public string Classname { get; set; }
Property Value
Type |
Description |
System.String |
|
Implements
|
Improve this Doc
View Source
Handle
Handle (ID) of the window
Declaration
public IntPtr Handle { get; }
Property Value
Implements
|
Improve this Doc
View Source
HasChildren
Test if there are any children
Declaration
public bool HasChildren { get; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
|
Improve this Doc
View Source
HasClassname
Does the window have a classname?
Declaration
public bool HasClassname { get; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
|
Improve this Doc
View Source
HasParent
Does this window have parent?
Declaration
public bool HasParent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
|
Improve this Doc
View Source
Info
WindowInfo for the Window
Declaration
public WindowInfo? Info { get; set; }
Property Value
Implements
|
Improve this Doc
View Source
IsMaximized
Returns true if the window is maximized
Declaration
public bool ? IsMaximized { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Implements
|
Improve this Doc
View Source
IsMinimized
Returns true if the window is minimized
Declaration
public bool ? IsMinimized { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Implements
|
Improve this Doc
View Source
IsVisible
Returns true if the window is visible
Declaration
public bool ? IsVisible { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Implements
|
Improve this Doc
View Source
Parent
The handle for the parent to which this window belongs
Declaration
public IntPtr? Parent { get; set; }
Property Value
Type |
Description |
System.Nullable<IntPtr> |
|
Implements
|
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
public IInteropWindow ParentWindow { get; set; }
Property Value
Implements
|
Improve this Doc
View Source
Placement
WindowPlacement for the Window
Declaration
public WindowPlacement? Placement { get; set; }
Property Value
Implements
|
Improve this Doc
View Source
ProcessId
Get the process ID this window belongs to
Declaration
public int ? ProcessId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Implements
|
Improve this Doc
View Source
Text
Return the text (not title) of the window, if any
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
Implements
Methods
|
Improve this Doc
View Source
Dump(InteropWindowCacheFlags, StringBuilder, String)
Dump the information in the InteropWindow for debugging
Declaration
public 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
|
Implements
|
Improve this Doc
View Source
Equals(IInteropWindow)
Declaration
public bool Equals(IInteropWindow other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
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 |
|
Operators
|
Improve this Doc
View Source
Equality(InteropWindow, InteropWindow)
Declaration
public static bool operator ==(InteropWindow left, InteropWindow right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Implicit(InteropWindow to IntPtr)
Declaration
public static implicit operator IntPtr(InteropWindow interopWindow)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(IntPtr to InteropWindow)
Declaration
public static implicit operator InteropWindow(IntPtr handle)
Parameters
Type |
Name |
Description |
IntPtr |
handle |
|
Returns
|
Improve this Doc
View Source
Inequality(InteropWindow, InteropWindow)
Declaration
public static bool operator !=(InteropWindow left, InteropWindow right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods