Class WindowCaptureEventArgs
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Provides data for events related to window capture, typically used to identify a window for screen recording or streaming.
public class WindowCaptureEventArgs : EventArgsInheritance
Inherited Members
Examples
// Example of handling a WindowCapture event:
void OnWindowDetected(object sender, WindowCaptureEventArgs e)
{
Console.WriteLine($"Detected Window: {e.Caption} (Handle: {e.Handle})");
// If e.Caption matches a desired window, you might then use e.Handle for capture.
}
Remarks
This event argument contains information about a detected window, including its caption and handle. It is useful when an application needs to allow the user to select a specific window to capture.
Constructors
WindowCaptureEventArgs(string, nint)
Initializes a new instance of the VisioForge.Core.Types.WindowCaptureEventArgs class.
public WindowCaptureEventArgs(string caption, nint handle)Parameters
captionstring-
The caption (title) of the window.
handlenint-
The window handle (HWND) of the window.
Properties
Caption
Gets the caption (title) of the captured window.
public string Caption { get; }Property Value
Handle
Gets the window handle (HWND) of the captured window.
public nint Handle { get; }