WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Border - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Border

    Class which represents the border of the tag elements.

    Inheritance
    System.Object
    Border
    Implements
    IBorder
    System.ICloneable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public class Border : IBorder, ICloneable

    Constructors

    Border()

    Initializes a new instance of the Border class

    Declaration
    public Border()

    Border(Int32, BordersStyle, Color)

    Initializes a new instance of the Border class

    Declaration
    public Border(int width, BordersStyle style, Color color)
    Parameters
    Type Name Description
    System.Int32 width

    Width of the border.

    BordersStyle style

    Style of the border.

    System.Drawing.Color color

    Color of the border.

    Properties

    Color

    Gets or sets the color of the border line.

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

    IsEmpty

    Gets a value indicating whether border is empty.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    Style

    Gets or sets the style of the border line.

    Declaration
    public BordersStyle Style { get; set; }
    Property Value
    Type Description
    BordersStyle

    Width

    Gets or sets the width of the border line.

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

    Methods

    Clone()

    Create a new copy of the existing object.

    Declaration
    public IBorder Clone()
    Returns
    Type Description
    IBorder

    Clone of this object.

    CopyTo(Border)

    Copies all settings of the current object to a new object.

    Declaration
    public void CopyTo(Border twin)
    Parameters
    Type Name Description
    Border twin

    Border object for values copying.

    CopyTo(IBorder)

    Overloaded. Copies all settings of the current object to the new object.

    Declaration
    public void CopyTo(IBorder twin)
    Parameters
    Type Name Description
    IBorder twin

    Another object for properties copying.

    OnColorChanged(ValueChangedEventArgs)

    Raises the ColorChanged event.

    Declaration
    protected virtual void OnColorChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    OnStyleChanged(ValueChangedEventArgs)

    Raises the StyleChanged event.

    Declaration
    protected virtual void OnStyleChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    OnWidthChanged(ValueChangedEventArgs)

    Raises the WidthChanged event.

    Declaration
    protected virtual void OnWidthChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    RaiseColorChanged(ValueChangedEventArgs)

    Raises the ColorChanged event.

    Declaration
    protected void RaiseColorChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    RaiseStyleChanged(ValueChangedEventArgs)

    Raises the StyleChanged event.

    Declaration
    protected void RaiseStyleChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    RaiseWidthChanged(ValueChangedEventArgs)

    Raises the WidthChanged event.

    Declaration
    protected void RaiseWidthChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    ValueChangedEventArgs instance

    ShouldSerializeColor()

    Indicates whether the forecolor property is serialized.

    Declaration
    protected virtual bool ShouldSerializeColor()
    Returns
    Type Description
    System.Boolean

    bool value

    ShouldSerializeStyle()

    Indicates whether the forecolor property is serialized.

    Declaration
    protected virtual bool ShouldSerializeStyle()
    Returns
    Type Description
    System.Boolean

    bool value

    ShouldSerializeWidth()

    Indicates whether the forecolor property is serialized.

    Declaration
    protected virtual bool ShouldSerializeWidth()
    Returns
    Type Description
    System.Boolean

    bool value

    Events

    ColorChanged

    Event. Raised when the color property is changed.

    Declaration
    public event ValueChangedEventHandler ColorChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    StyleChanged

    Event. Raised when the style property is changed.

    Declaration
    public event ValueChangedEventHandler StyleChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    WidthChanged

    Event. Raised when the width property is changed.

    Declaration
    public event ValueChangedEventHandler WidthChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    Explicit Interface Implementations

    ICloneable.Clone()

    Clones object.

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    System.Object

    Clone of this object.

    Implements

    IBorder
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved