Click or drag to resize

Margins Class

Class allows to store Page Margins (integer values).
Inheritance Hierarchy
System Object
Spire.Doc.Documents Margins

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public sealed class Margins

The Margins type exposes the following members.

Constructors
Name Description
Public method Margins
Default constructor. Set all margins to 0.
Public method Margins(Int32, Int32, Int32, Int32)
Create margins with specified values
Top
Properties
Name Description
Public property All
Allow to Get or Set value of all Margins on one call
Public property Bottom
Gets or Sets the bottom margin
Public property Left
Gets or Sets the left margin
Public property Right
Gets or Sets the right margin
Public property Top
Gets or Sets the top margin
Top
Methods
Name Description
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also