__init__ constructor
Leave feedback
On this page
Initializes a new instance of the Padding class with zero values.
def __init__(self):
...
from groupdocs.signature.domain import Padding
# Create a padding object with default (zero) values
default_padding = Padding()
Initializes a new instance of the Padding class using the supplied padding size for all edges.
def __init__(self, all):
...
| Parameter | Type | Description |
|---|---|---|
| all | int |
The number of measure units to be used for padding for all edges. |
# Uniform padding of 5 units on all sides
margin = Padding(5)
Initializes a new instance of the Padding class using the supplied padding sizes.
def __init__(self, left, right, top, bottom):
...
| Parameter | Type | Description |
|---|---|---|
| left | int |
The left padding size. |
| right | int |
The right padding size. |
| top | int |
The top padding size. |
| bottom | int |
The bottom padding size. |
from groupdocs.signature.domain import Padding
# Create a padding with right and bottom offsets
margin = Padding(right=40, bottom=60)
- class
Padding
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.