INativeWindow INativeWindow Interface

Definition

Defines the interface for a native window.

public interface INativeWindow : IDisposable
type INativeWindow = interface
    interface IDisposable
Derived
Implements

Properties

Bounds Bounds

Gets or sets a Rectangle structure the contains the external bounds of this window, in screen coordinates. External bounds include the title bar, borders and drawing area of the window.

ClientRectangle ClientRectangle

Gets or sets a Rectangle structure that contains the internal bounds of this window, in client coordinates. The internal bounds include the drawing area of the window, but exclude the titlebar and window borders.

ClientSize ClientSize

Gets or sets a Size structure that contains the internal size this window.

Exists Exists

Gets a System.Boolean that indicates whether the window has been created and has not been destroyed.

Focused Focused

Gets a System.Boolean that indicates whether this window has input focus.

Height Height

Gets or sets the external height of this window.

Location Location

Gets or sets a Point structure that contains the location of this window on the desktop.

Size Size

Gets or sets a Size structure that contains the external size of this window.

Title Title

Gets or sets the title of the window.

Visible Visible

Gets or sets a System.Boolean that indicates whether the window is visible.

Width Width

Gets or sets the external width of this window.

WindowBorder WindowBorder

Gets or sets the WindowBorder for this window.

WindowInfo WindowInfo

Gets the IWindowInfo for this window.

WindowState WindowState

Gets or sets the WindowState for this window.

X X

Gets or sets the horizontal location of this window on the desktop.

Y Y

Gets or sets the vertical location of this window on the desktop.

Methods

Close() Close()

Closes this window.

PointToClient(Point) PointToClient(Point)

Transforms the specified point from screen to client coordinates.

PointToScreen(Point) PointToScreen(Point)

Transforms the specified point from client to screen coordinates.

ProcessEvents() ProcessEvents()

Processes pending window events.

Events

Closed Closed

Occurs after the window has closed.

Closing Closing

Occurs when the window is about to close.

Disposed Disposed

Occurs when the window is disposed.

FocusedChanged FocusedChanged

Occurs when the Focused property of the window changes.

KeyPress KeyPress

Occurs whenever a character is typed.

Move Move

Occurs whenever the window is moved.

Resize Resize

Occurs whenever the window is resized.

TitleChanged TitleChanged

Occurs when the Title property of the window changes.

VisibleChanged VisibleChanged

Occurs when the Visible property of the window changes.

WindowBorderChanged WindowBorderChanged

Occurs when the WindowBorder property of the window changes.

WindowStateChanged WindowStateChanged

Occurs when the WindowState property of the window changes.

Applies to