Class: QgsMargins¶
Methods
Returns the bottom margin. |
|
Returns c |
|
Returns the left margin. |
|
Returns the right margin. |
|
Sets the bottom margin to bottom. |
|
Sets the left margin to left. |
|
Sets the right margin to right. |
|
Sets the top margin to top. |
|
Returns the margins encoded to a string. |
|
Returns the top margin. |
Static Methods
Returns a |
- class qgis.core.QgsMargins[source]¶
Bases:
object
- __init__(left: float, top: float, right: float, bottom: float)
Constructs margins with the given
left
,top
,right
,bottom
See also
See also
See also
See also
- Parameters:
left (float)
top (float)
right (float)
bottom (float)
- __init__(a0: QgsMargins)
- Parameters:
a0 (QgsMargins)
- static fromString(string: str | None) QgsMargins [source]¶
Returns a
QgsMargins
object decoded from a string, or a null QgsMargins if the string could not be interpreted as margins.See also
- Parameters:
string (Optional[str])
- Return type:
- isNull(self) bool [source]¶
Returns c
True
if all margins are is 0; otherwise returnsFalse
.- Return type:
bool
- setBottom(self, bottom: float)[source]¶
Sets the bottom margin to
bottom
.See also
- Parameters:
bottom (float)
- setRight(self, right: float)[source]¶
Sets the right margin to
right
.See also
- Parameters:
right (float)