Struct Margins

Margins structure

Specifies the dimensions of the margins of a node.

public struct Margins : IEquatable<Margins>

Constructors

NameDescription
Margins(float, float, float, float)Initializes a new instance of the Margins struct with the specified left, right, top, and bottom margins.

Properties

NameDescription
Bottom { get; set; }Gets or sets the bottom margin width.
Left { get; set; }Gets or sets the left margin width.
Right { get; set; }Gets or sets the right margin width.
Top { get; set; }Gets or sets the top margin width.

Methods

NameDescription
Equals(Margins)Tests whether two Margins structures are equal.
override Equals(object)Tests whether two Margins structures are equal.
override GetHashCode()Serves as a hash function for the type.
operator ==Tests whether two Margins structures are equal.
operator !=Tests whether two Margins structures are not equal.

Fields

NameDescription
static readonly EmptyThe empty margins.

See Also