IWin32WindowExtensions Class

Contains custom extension methods to use with IWin32Window.

Definition

Namespace: DevCase.Extensions.IWin32WindowExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class IWin32WindowExtensions
Inheritance
Object    IWin32WindowExtensions

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
GetWindowInfo Returns a WindowInfo object for the current IWin32Window.
PostMessage(IWin32Window, WindowMessages, IntPtr, IntPtr) Places (posts) a message in the message queue associated with the thread that created the specified window, and returns without waiting for the thread to process the message.
PostMessage(IWin32Window, Int32, IntPtr, IntPtr) Places (posts) a message in the message queue associated with the thread that created the specified window, and returns without waiting for the thread to process the message.
ResumeDrawing(IWin32Window) Allow the specified window to be redrawn.

By calling this method, it will allow painting events to be fired on the specified window.

ResumeDrawing(IWin32Window, Boolean) Allow the specified window to be redrawn.

By calling this method, it will allow painting events to be fired on the specified window.

SendKeyAsync(IWin32Window, VirtualKeys, KeyBehavior) Asynchronouslly sends a keystroke to the specified window.
SendKeyAsync(IWin32Window, Keys, KeyBehavior) Asynchronouslly sends a keystroke to the specified window.
SendMessage(IWin32Window, WindowMessages, IntPtr, IntPtr) Sends the specified message to the specified window.

The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

SendMessage(IWin32Window, Int32, IntPtr, IntPtr) Sends the specified message to the specified window.

The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

SendMouseButton(IWin32Window, MouseButton) Sends a mouse button click to the specified window.
SendMouseButton(IWin32Window, MouseButton, Point) Sends a mouse button click to the specified coordinates on the specified window.
SuspendDrawing Prevents the specified window from being redrawn.

By calling this method, it will disallow painting events from firing on the specified window.

ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also