FormConfig

Configuration for a ReCaptcha form.

Type: Class
Namespace: ReCaptcha.Desktop.WinForms.Configuration
Assembly: ReCaptcha.Desktop.WinForms

public class FormConfig

Constructors

Creates a new FormConfig.

public FormConfig(
    string title,
    Icon icon = default!,
    Form? parent = null,
    FormStartPosition startPosition = FormStartPosition.CenterScreen,
    int left = 0,
    int top = 0
    bool showAsDialog = false,)
ParameterDescription
string titleThe title of the form.
Icon iconThe icon of the form.
Form? parentThe parent of this form. (Only used for StartupLocation.CenterParent).
FormStartPosition startPositionThe start position of the form.
int leftThe left position of the form.
int topThe top position of the form.
bool showAsDialogWether to block the UI thread when showing the form.

Properties

Title

The title of the form.

Type: string
Modifier: none
Default Value: none

Icon

The icon of the form.

Type: Icon
Modifier: none
Default Value: default!

Parent

The parent of this form. (Only used for StartupLocation.CenterParent).

Type: Form?
Modifier: none
Default Value: null

StartupLocation

The start position of the form.

Type: WindowStartupLocation
Modifier: none
Default Value: WindowStartupLocation.CenterScreen

Left

The left position of the form.

Type: int
Modifier: none
Default Value: 0

Top

The top position of the form.

Type: int
Modifier: none
Default Value: 0

ShowAsDialog

Wether to block the UI thread when showing the form.

Type: bool
Modifier: none
Default Value: false