WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Border

    Show / Hide Table of Contents

    Class Border

    Represents the border formatting options for Word document contents.

    Inheritance
    System.Object
    OwnerHolder
    XDLSSerializableBase
    FormatBase
    Border
    Implements
    IXDLSSerializable
    Inherited Members
    FormatBase.m_propertiesHash
    FormatBase.m_oldPropertiesHash
    FormatBase.ImportContainer(FormatBase)
    FormatBase.ImportMembers(FormatBase)
    FormatBase.HasKey(Int32)
    FormatBase.HasBoolKey(Int32)
    FormatBase.ClearFormatting()
    FormatBase.GetDefComposite(Int32)
    FormatBase.EnsureComposites()
    FormatBase.EnsureComposites(Int32[])
    FormatBase.GetBaseKey(Int32)
    FormatBase.GetFullKey(Int32)
    FormatBase.GetDefComposite(Int32, FormatBase)
    FormatBase.Item[Int32]
    XDLSSerializableBase.IXDLSSerializable.WriteXmlAttributes(IXDLSAttributeWriter)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.IXDLSSerializable.ReadXmlAttributes(IXDLSAttributeReader)
    XDLSSerializableBase.IXDLSSerializable.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.IXDLSSerializable.RestoreReference(String, Int32)
    XDLSSerializableBase.CloneImpl()
    XDLSSerializableBase.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.RestoreReference(String, Int32)
    XDLSSerializableBase.IXDLSSerializable.XDLSHolder
    XDLSSerializableBase.XDLSHolder
    OwnerHolder.m_doc
    OwnerHolder.Document
    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.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class Border : FormatBase, IXDLSSerializable

    Constructors

    Border(FormatBase, Int32)

    Initializes a new instance of the Border class with the specified FormatBase and key.

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

    The FormatBase object that represents the base formatting options.

    System.Int32 baseKey

    The integer that specifies the base key.

    Fields

    ColorKey

    Variable used to hold the ColorKey.

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

    HasNoneStyleKey

    Variable used to hold the HasNoneStyleKey.

    Declaration
    protected const int HasNoneStyleKey = 6
    Field Value
    Type Description
    System.Int32

    ShadowKey

    Variable used to hold the ShadowKey.

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

    SpaceKey

    Variable used to hold the SpaceKey.

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

    Properties

    BorderType

    Gets or sets style of the border.

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

    The BorderStyle member that specifies the style for border.

    Color

    Gets or sets the color for border.

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

    The System.Drawing.Color for border.

    LineWidth

    Gets or sets the width of the border measured in points.

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

    The float that represents the width of the border.

    Shadow

    Gets or sets a value indicating whether the border should be drawn with shadow.

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

    True if shadow should be drawn; otherwise, false.

    Space

    Gets or sets the width(in points) of space to maintain between border and text within border.

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

    The float that specifies the width of the space measured in points.

    Methods

    GetDefValue(Int32)

    Returns the default values.

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

    The integer that specifies the key.

    Returns
    Type Description
    System.Object

    An object that specifies the default value.

    Overrides
    FormatBase.GetDefValue(Int32)

    InitFormatting(Color, Single, BorderStyle, Boolean)

    Initializes the Border style.

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

    The System.Drawing.Color for the border.

    System.Single lineWidth

    The float that specifies width of the line.

    BorderStyle borderType

    The BorderStyle member that specifies the style for border.

    System.Boolean shadow

    True if shadow should be drawn, otherwise false.

    InitXDLSHolder()

    Registers child objects in XDSL holder.

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

    OnChange(FormatBase, Int32)

    Occurs on format change.

    Declaration
    protected override void OnChange(FormatBase format, int propertyKey)
    Parameters
    Type Name Description
    FormatBase format

    The FormatBase object.

    System.Int32 propertyKey

    The integer that represents the property key.

    Overrides
    FormatBase.OnChange(FormatBase, Int32)

    ReadXmlAttributes(IXDLSAttributeReader)

    Reads object data from xml attributes.

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

    The IXDLSAttributeReader object.

    Overrides
    XDLSSerializableBase.ReadXmlAttributes(IXDLSAttributeReader)

    WriteXmlAttributes(IXDLSAttributeWriter)

    Writes object data as xml attributes.

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

    The IXDLSAttributeWriter object.

    Overrides
    XDLSSerializableBase.WriteXmlAttributes(IXDLSAttributeWriter)

    Implements

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