Padding class

Padding class

Represents padding or margin information associated with element.

The Padding type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the Padding class with zero values.
init Initializes a new instance of the Padding class using the supplied padding size for all edges.
init Initializes a new instance of the Padding class using the supplied padding sizes.

Methods

Method Description
clone Gets a copy of this object.

Properties

Property Description
all The padding value for all edges.
bottom The padding value for the bottom edge.
horizontal The combined padding for the right and left edges.
left The padding value for the left edge.
right The padding value for the right edge.
top The padding value for the top edge.
vertical The combined padding for the top and bottom edges.

Fields

Field Description
EMPTY Provides a Padding object with no padding.

Example

from groupdocs.signature.domain import Padding

# Uniform padding of 5 units on all sides
uniform = Padding(5)

# Specific padding on right and bottom
custom = Padding(right=40, bottom=60)

Guides

Task guides that use Padding:

See Also