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 SourceCanScroll
Specifies if a WindowScroller can work with this window
Declaration
bool ? CanScroll { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Caption
Return the title of the window, if any
Declaration
string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Children
Returns the children of this window
Declaration
IEnumerable<IInteropWindow> Children { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<IInteropWindow> |
Classname
string with the name of the internal class for the window
Declaration
string Classname { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Handle
Handle (ID) of the window
Declaration
IntPtr Handle { get; }
Property Value
Type | Description |
---|---|
IntPtr |
HasChildren
Test if there are any children
Declaration
bool HasChildren { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasClassname
Does the window have a classname?
Declaration
bool HasClassname { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasParent
Does this window have parent?
Declaration
bool HasParent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Info
WindowInfo for the Window
Declaration
WindowInfo? Info { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<WindowInfo> |
IsMaximized
Returns true if the window is maximized
Declaration
bool ? IsMaximized { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
IsMinimized
Returns true if the window is minimized
Declaration
bool ? IsMinimized { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
IsVisible
Returns true if the window is visible
Declaration
bool ? IsVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Parent
The handle for the parent to which this window belongs
Declaration
IntPtr? Parent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<IntPtr> |
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 |
Placement
WindowPlacement for the Window
Declaration
WindowPlacement? Placement { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<WindowPlacement> |
ProcessId
Get the process ID this window belongs to
Declaration
int ? ProcessId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
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 SourceDump(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 |