Struct Margins

Struct Margins

Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)

Specifies the dimensions of the margins of a node.

public struct Margins : IEquatable<margins>

Implements

IEquatable<margins>

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

Margins(float, float, float, float)

Initializes a new instance of the Aspose.Note.Margins struct with the specified left, right, top, and bottom margins.

public Margins(float left, float right, float top, float bottom)

Parameters

left float

The left margin width.

right float

The right margin width.

top float

The top margin width.

bottom float

The bottom margin width.

Fields

Empty

The empty margins.

public static readonly Margins Empty

Field Value

Margins

Properties

Bottom

Gets or sets the bottom margin width.

public float Bottom { readonly get; set; }

Property Value

float

Left

Gets or sets the left margin width.

public float Left { readonly get; set; }

Property Value

float

Right

Gets or sets the right margin width.

public float Right { readonly get; set; }

Property Value

float

Top

Gets or sets the top margin width.

public float Top { readonly get; set; }

Property Value

float

Methods

Equals(Margins)

Tests whether two Margins structures are equal.

public bool Equals(Margins other)

Parameters

other Margins

The Margins structure.

Returns

bool

The System.Boolean.

Equals(object)

Tests whether two Margins structures are equal.

public override bool Equals(object obj)

Parameters

obj object

Any object.

Returns

bool

The System.Boolean.

GetHashCode()

Serves as a hash function for the type.

public override int GetHashCode()

Returns

int

The System.Int32.

Operators

operator ==(Margins, Margins)

Tests whether two Margins structures are equal.

public static bool operator ==(Margins lhs, Margins rhs)

Parameters

lhs Margins

The Margins structure.

rhs Margins

The Margins structure to be compared with.

Returns

bool

The System.Boolean.

operator !=(Margins, Margins)

Tests whether two Margins structures are not equal.

public static bool operator !=(Margins lhs, Margins rhs)

Parameters

lhs Margins

The Margins structure.

rhs Margins

The Margins structure to be compared with.

Returns

bool

The System.Boolean. </margins>