INativeWindow Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the interface for a native window.
public interface INativeWindow : IDisposable
type INativeWindow = interface
interface IDisposable
- Derived
- Implements
Properties
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 |
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 |
Gets or sets a Size structure that contains the internal size this window. |
Exists |
Gets a System.Boolean that indicates whether the window has been created and has not been destroyed. |
Focused |
Gets a System.Boolean that indicates whether this window has input focus. |
Height |
Gets or sets the external height of this window. |
Location |
Gets or sets a Point structure that contains the location of this window on the desktop. |
Size |
Gets or sets a Size structure that contains the external size of this window. |
Title |
Gets or sets the title of the window. |
Visible |
Gets or sets a System.Boolean that indicates whether the window is visible. |
Width |
Gets or sets the external width of this window. |
WindowBorder |
Gets or sets the WindowBorder for this window. |
WindowInfo |
Gets the IWindowInfo for this window. |
WindowState |
Gets or sets the WindowState for this window. |
X |
Gets or sets the horizontal location of this window on the desktop. |
Y |
Gets or sets the vertical location of this window on the desktop. |
Methods
Close() |
Closes this window. |
PointToClient(Point) |
Transforms the specified point from screen to client coordinates. |
PointToScreen(Point) |
Transforms the specified point from client to screen coordinates. |
ProcessEvents() |
Processes pending window events. |
Events
Closed |
Occurs after the window has closed. |
Closing |
Occurs when the window is about to close. |
Disposed |
Occurs when the window is disposed. |
FocusedChanged |
Occurs when the Focused property of the window changes. |
KeyPress |
Occurs whenever a character is typed. |
Move |
Occurs whenever the window is moved. |
Resize |
Occurs whenever the window is resized. |
TitleChanged |
Occurs when the Title property of the window changes. |
VisibleChanged |
Occurs when the Visible property of the window changes. |
WindowBorderChanged |
Occurs when the WindowBorder property of the window changes. |
WindowStateChanged |
Occurs when the WindowState property of the window changes. |