menu

WinForms

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

    Show / Hide Table of Contents

    Class Border

    Represents border formatting.

    Inheritance
    System.Object
    EntityBase
    XDLSSerializableBase
    FormatBase
    Border
    Implements
    IEntityBase
    IXDLSSerializable
    Inherited Members
    EntityBase.Document
    EntityBase.DocumentEx
    EntityBase.Owner
    EntityBase.SetOwner(IEntityBase)
    FormatBase.EnsureComposites()
    FormatBase.EnsureComposites(Int32[])
    FormatBase.GetBaseKey(Int32)
    FormatBase.GetDefComposite(Int32)
    FormatBase.GetDefComposite(Int32, FormatBase)
    FormatBase.GetFullKey(Int32)
    FormatBase.HasKey(Int32)
    FormatBase.ImportContainer(FormatBase)
    FormatBase.ImportMembers(FormatBase)
    FormatBase.IsDefault
    FormatBase.Item[Int32]
    FormatBase.m_keysOffset
    FormatBase.PropertiesHash
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    XDLSSerializableBase.IXDLSSerializable.ReadXmlAttributes(IXDLSAttributeReader)
    XDLSSerializableBase.IXDLSSerializable.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.IXDLSSerializable.RestoreReference(String, Int32)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlAttributes(IXDLSAttributeWriter)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.IXDLSSerializable.XDLSHolder
    XDLSSerializableBase.m_id
    XDLSSerializableBase.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.RestoreReference(String, Int32)
    XDLSSerializableBase.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.XDLSHolder
    Namespace: Syncfusion.DLS
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class Border : FormatBase, IEntityBase, IXDLSSerializable

    Constructors

    Border(FormatBase, Int32)

    Initializing constructor.

    Declaration
    public Border(FormatBase parent, int baseKey)
    Parameters
    Type Name Description
    FormatBase parent
    System.Int32 baseKey

    Fields

    BorderTypeKey

    Declaration
    protected const int BorderTypeKey = 2
    Field Value
    Type
    System.Int32

    ColorKey

    Declaration
    public const int ColorKey = 1
    Field Value
    Type
    System.Int32

    LineWidthKey

    Declaration
    protected const int LineWidthKey = 3
    Field Value
    Type
    System.Int32

    ShadowKey

    Declaration
    protected const int ShadowKey = 5
    Field Value
    Type
    System.Int32

    SpaceKey

    Declaration
    protected const int SpaceKey = 4
    Field Value
    Type
    System.Int32

    Properties

    BorderType

    Gets/sets style of the border.

    Declaration
    public BorderStyle BorderType { get; set; }
    Property Value
    Type
    BorderStyle

    Color

    Gets/sets color of the border.

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

    LineWidth

    Gets/sets width of the border.

    Declaration
    public float LineWidth { get; set; }
    Property Value
    Type
    System.Single

    Shadow

    Setting to define if border should be drawn with shadow.

    Declaration
    public bool Shadow { get; set; }
    Property Value
    Type
    System.Boolean

    Space

    Gets / Sets width of space to maintain between border and text within border.

    Declaration
    public float Space { get; set; }
    Property Value
    Type
    System.Single

    Methods

    GetDefValue(Int32)

    Declaration
    protected override object GetDefValue(int key)
    Parameters
    Type Name Description
    System.Int32 key
    Returns
    Type
    System.Object
    Overrides
    FormatBase.GetDefValue(Int32)

    InitFormatting(Color, Single, BorderStyle, Boolean)

    Declaration
    public void InitFormatting(Color color, float lineWidth, BorderStyle borderType, bool shadow)
    Parameters
    Type Name Description
    System.Drawing.Color color
    System.Single lineWidth
    BorderStyle borderType
    System.Boolean shadow

    InitXDLSHolder()

    Declaration
    protected override void InitXDLSHolder()
    Overrides
    XDLSSerializableBase.InitXDLSHolder()

    ReadXmlAttributes(IXDLSAttributeReader)

    Declaration
    protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
    Parameters
    Type Name Description
    IXDLSAttributeReader reader
    Overrides
    XDLSSerializableBase.ReadXmlAttributes(IXDLSAttributeReader)

    WriteXmlAttributes(IXDLSAttributeWriter)

    Declaration
    protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
    Parameters
    Type Name Description
    IXDLSAttributeWriter writer
    Overrides
    XDLSSerializableBase.WriteXmlAttributes(IXDLSAttributeWriter)

    Implements

    IEntityBase
    IXDLSSerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved