menu

Document Processing

Paddings Class - C# Word Library API Reference | Syncfusion

    Show / Hide Table of Contents

    Paddings Class

    Represents the cell paddings.

    Inheritance
    System.Object
    OwnerHolder
    Syncfusion.DocIO.DLS.XML.XDLSSerializableBase
    FormatBase
    Paddings
    Inherited Members
    FormatBase.ClearFormatting()
    FormatBase.EnsureComposites()
    FormatBase.EnsureComposites(Int32[])
    FormatBase.GetBaseKey(Int32)
    FormatBase.GetDefComposite(Int32)
    FormatBase.GetDefComposite(Int32, FormatBase)
    FormatBase.GetFullKey(Int32)
    FormatBase.HasBoolKey(Int32)
    FormatBase.HasKey(Int32)
    FormatBase.ImportContainer(FormatBase)
    FormatBase.ImportMembers(FormatBase)
    FormatBase.Item[Int32]
    FormatBase.m_oldPropertiesHash
    FormatBase.m_propertiesHash
    OwnerHolder.Document
    OwnerHolder.m_doc
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class Paddings : FormatBase, IXDLSSerializable

    Fields

    BottomKey

    Specifies the constant value for bottom key.

    Declaration
    public const int BottomKey = 3
    Field Value
    Type
    System.Int32

    LeftKey

    Specifies the constant value for left key.

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

    RightKey

    Specifies the constant value for right key.

    Declaration
    public const int RightKey = 4
    Field Value
    Type
    System.Int32

    TopKey

    Specifies the constant value for top key.

    Declaration
    public const int TopKey = 2
    Field Value
    Type
    System.Int32

    Properties

    All

    Sets the padding values for all sides of the cell.

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

    The float that specifies the padding value for left, right, top and bottom.

    Bottom

    Gets or sets the bottom padding value for the cell in points.

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

    The float that specifies bottom padding value.

    Left

    Gets or sets the left padding value for the cell in points.

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

    The float that specifies left padding value.

    Right

    Gets or sets the right padding value for the cell in points.

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

    The float that specifies right padding value.

    Top

    Gets or sets the top padding value for the cell in points.

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

    The float that specifies top padding value.

    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)

    InitXDLSHolder()

    Registers child objects in XDSL holder.

    Declaration
    protected override void InitXDLSHolder()
    Overrides
    Syncfusion.DocIO.DLS.XML.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)

    See Also

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