menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BorderPanel - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BorderPanel

    The BorderPanel is a control that can be used to wrap other controls inside improving its visual appearance.

    Inheritance
    System.Object
    BorderPanel
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class BorderPanel : Panel

    Constructors

    BorderPanel()

    Declaration
    public BorderPanel()

    Properties

    BackColor

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Background

    Gets / sets the background information of the border.

    Declaration
    public BrushInfo Background { get; set; }
    Property Value
    Type
    BrushInfo

    Control

    Gets / sets the control to be displayed inside the panel.

    Declaration
    public Control Control { get; set; }
    Property Value
    Type
    System.Windows.Forms.Control

    CornerRadius

    Gets / sets the round corner radii of the outer shape.

    Declaration
    public BorderPanelCornerSettings CornerRadius { get; set; }
    Property Value
    Type
    BorderPanelCornerSettings

    Dimensions

    Gets / sets the sizes of the sides of the border.

    Declaration
    public BorderPanelDimensions Dimensions { get; set; }
    Property Value
    Type
    BorderPanelDimensions

    InnerBorderWidth

    Gets / sets the width of the border of the inner surface.

    Declaration
    public int InnerBorderWidth { get; set; }
    Property Value
    Type
    System.Int32

    InnerColor

    Gets / sets the color of the background of the inner surface.

    Declaration
    public Color InnerColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    InnerCornerRadius

    Gets / sets the round corner radii of the inner surface.

    Declaration
    public BorderPanelCornerSettings InnerCornerRadius { get; set; }
    Property Value
    Type
    BorderPanelCornerSettings

    InnerState

    Gets / sets the height state of the inner surface.

    Declaration
    public BorderPanelState InnerState { get; set; }
    Property Value
    Type
    BorderPanelState

    OuterBorderWidth

    Gets / sets the width of the border.

    Declaration
    public int OuterBorderWidth { get; set; }
    Property Value
    Type
    System.Int32

    OuterState

    Gets / sets the height state of the outer surface.

    Declaration
    public BorderPanelState OuterState { get; set; }
    Property Value
    Type
    BorderPanelState

    Text

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    Methods

    Dispose(Boolean)

    Cleans up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnSizeChanged(EventArgs)

    Declaration
    protected override void OnSizeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    ResetCornerRadius()

    Declaration
    protected void ResetCornerRadius()

    ResetDimensions()

    Declaration
    protected void ResetDimensions()

    ResetInnerColor()

    Declaration
    protected void ResetInnerColor()

    ResetInnerCornerRadius()

    Declaration
    protected void ResetInnerCornerRadius()

    ResetText()

    Declaration
    protected void ResetText()

    ShouldSerializeCornerRadius()

    Declaration
    protected bool ShouldSerializeCornerRadius()
    Returns
    Type
    System.Boolean

    ShouldSerializeDimensions()

    Declaration
    protected bool ShouldSerializeDimensions()
    Returns
    Type
    System.Boolean

    ShouldSerializeInnerColor()

    Declaration
    protected bool ShouldSerializeInnerColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeInnerCornerRadius()

    Declaration
    protected bool ShouldSerializeInnerCornerRadius()
    Returns
    Type
    System.Boolean

    ShouldSerializeText()

    Declaration
    protected bool ShouldSerializeText()
    Returns
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved