Share via


WizardForm.BorderMargin Property

Definition

Gets the width of the margins around the wizard page in the wizard form.

protected:
 virtual property int BorderMargin { int get(); };
protected override int BorderMargin { get; }
member this.BorderMargin : int
Protected Overrides ReadOnly Property BorderMargin As Integer

Property Value

The width, in pixels, of the margin. The default is 14.

Examples

The following example sets the BorderMargin property to 25 pixels. This code example is part of a larger example provided for the WizardForm class.

// Customize the Border Margin. The default is 14 pixels;
protected override int BorderMargin
{
    get
    {
        return 25;
    }
}
// Customize the Border Margin. The default is 14 pixels;
protected override int BorderMargin
{
    get
    {
        return 25;
    }
}

Remarks

The margin is the transparent area around the top, right, bottom, and left sides of the control that is shown in the wizard form. The WizardPage object that is displayed will resize to fit the wizard form with the border set to the BorderMargin property value. Setting the border margin too large will cause the loss of the lower-right corner of the wizard page object. This property enables you to create a custom BorderMargin property.

Applies to