Class WindowCaptureForm
The window capture form.
Inheritance
WindowCaptureForm
Implements
Inherited Members
Namespace: VisioForge.Core.UI.WinForms.Dialogs
Assembly: VisioForge.Core.dll
Syntax
public class WindowCaptureForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
WindowCaptureForm()
Initializes a new instance of the WindowCaptureForm class.
Declaration
public WindowCaptureForm()
Properties
CaptureParentWindow
Gets or sets a value indicating whether to capture parent window.
Declaration
public bool CaptureParentWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
CapturedWindowHandle
Gets captured window handle.
Declaration
public nint CapturedWindowHandle { get; }
Property Value
| Type | Description |
|---|---|
| nint | The captured window handle. |
CapturedWindowText
Gets capture window text.
Declaration
public string CapturedWindowText { get; }
Property Value
| Type | Description |
|---|---|
| string | The captured window text. |
DefaultBorderColor
Gets or sets default border color.
Declaration
public Color DefaultBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color | The default color of the border. |
InfoLabel
Gets info label.
Declaration
public Label InfoLabel { get; }
Property Value
| Type | Description |
|---|---|
| Label | The information label. |
MoveByMouseDown
Gets or sets a value indicating whether window moved by mouse button down.
Declaration
public bool MoveByMouseDown { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Methods
Dispose(bool)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true if managed resources should be disposed; otherwise, false. |
Overrides
StartCapture()
Starts capture.
Declaration
public void StartCapture()
StopCapture()
Stops capture.
Declaration
public void StopCapture()
UpdateHotkey(Keys[])
Creates the hotkey hook.
Declaration
public void UpdateHotkey(Keys[] hotkey)
Parameters
| Type | Name | Description |
|---|---|---|
| Keys[] | hotkey | The hotkey. |
UpdateLocation(Rectangle)
Updates location.
Declaration
public void UpdateLocation(Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Rectangle | rect | Rectangle. |
Events
OnCaptureHotkey
OnCaptureHotkey event.
Declaration
public event EventHandler<WindowCaptureEventArgs> OnCaptureHotkey
Event Type
| Type | Description |
|---|---|
| EventHandler<WindowCaptureEventArgs> |