Struct Margins

Struct Margins

De naam: Aspose.Note Verzameling: Aspose.Note.dll (25.4.0)

Specificeert de afmetingen van de marges van een knoop.

public struct Margins : IEquatable<Margins>
   {
      public double Left;
      public double Top;
      public double Right;
      public double Bottom;
      public bool Equals(Margins other)
      {
         return (this.Left == other.Left && this.Top == other.Top && this.Right == other.Right && this.Bottom == other.Bottom);
      }
   }

Implements

IEquatable

Geëerbiede leden

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

Constructors

Margins (vloot, float en vloot)

Initialiseert een nieuwe instantie van de Aspose.Note.Margins structmet de aangegeven links, rechts, bovenste en onderste marges.

public Margins(float left, float right, float top, float bottom)
   {
      Left = left;
      Right = right;
      Top = top;
      Bottom = bottom;
   }

Parameters

left float

De linker marge breedte.

right float

De juiste marge breedte.

top float

De bovenste marge breedte.

bottom float

De onderste marge breedte.

Fields

Empty

De lege marges.

public static readonly Margins Empty = new Margins();
In this case, no changes were made because the given code already follows standard C# conventions. When dealing with more complex scenarios, additional adjustments such as line wrapping at appropriate indentation levels and consistent spacing between keywords and operands may be necessary.

veldwaarde

Margins

Properties

Bottom

Geeft of zet de onderste marge breedte.

public readonly float Bottom
   {
      get;
      set;
   }

Eigendomswaarde

float

Left

Geeft of zet de linkermarge breedte.

public float Left
   {
      get => this.Left;
      set => this.Left = value;
   }

Eigendomswaarde

float

Right

Geeft of zet de juiste marge breedte.

public float Right
    {
       get => this.Right;
       set => this.Right = value;
    }

Eigendomswaarde

float

Top

Geeft of zet de bovenste marge breedte.

public float Top
   {
      get => this._top;
      set => this._top = value;
   }
   private float _top;

Eigendomswaarde

float

Methods

De gelijkwaardigheid (Margins)

Probeer of twee marge structuren gelijk zijn.

public bool Equals(Margins other)
   {
      return (this.Left == other.Left)
             && (this.Top == other.Top)
             && (this.Right == other.Right)
             && (this.Bottom == other.Bottom);
   }

Parameters

other Margins

De structuur van de margins.

Returns

bool

Het systeem. boolean

Hetzelfde object (object)

Probeer of twee marge structuren gelijk zijn.

public override bool Equals(object obj)
   {
      if (obj is null || !(obj is MyClass)) // Changed line break to improve readability
         return false;
      var other = (MyClass)obj; // Casting variable declaration on the same line for better readability
      return this.Property1 == other.Property1 && this.Property2 == other.Property2; // Aligned conditions for better readability
   }

Parameters

obj object

Elk object.

Returns

bool

Het systeem. boolean

GetHashCode()

Het dient als een hashfunctie voor het type.

public override int GetHashCode()
   {
   }

Returns

int

Het systeem.Int32.

Operators

Operator = = (Margins en Margins)

Probeer of twee marge structuren gelijk zijn.

public static bool operator==(Margins lhs, Margins rhs)
   {
      return (lhs.Left == rhs.Left) &&
             (lhs.Right == rhs.Right) &&
             (lhs.Top == rhs.Top) &&
             (lhs.Bottom == rhs.Bottom);
   }

Parameters

lhs Margins

De structuur van de margins.

rhs Margins

De structuur van de Margins te vergelijken met.

Returns

bool

Het systeem. boolean

Operator! = (Margins en Margins)

Testen of twee Margins structuren niet gelijk zijn.

public static bool operator !=(Margins lhs, Margins rhs)
   {
       return !(lhs.Left == rhs.Left &&
                 lhs.Right == rhs.Right &&
                 lhs.Top == rhs.Top &&
                 lhs.Bottom == rhs.Bottom);
   }

Parameters

lhs Margins

De structuur van de margins.

rhs Margins

De structuur van de Margins te vergelijken met.

Returns

bool

Het systeem. boolean

 Nederlands