Struct Margins

Struct Margins

nazivni prostor: Aspose.Note Sastav: Aspose.Note.dll (25.4.0)

Označuje dimenzije granica čvorova.

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

naslijeđeni članovi

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

Constructors

Margini (pluta, pluta i plava)

Inicijalizira novu primjenu Aspose.Note.Margins struksa određenim lijevim, desnim, gornjim i donjim maržama.

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

Parameters

left float

Širina lijeve marže.

right float

Prava širina marže.

top float

Vrhovna širina marže.

bottom float

Spodnja širina marže.

Fields

Empty

I prazne marže.

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.

Vrijednost polja

Margins

Properties

Bottom

Uzmite ili postavite donju maržnu širinu.

public readonly float Bottom
   {
      get;
      set;
   }

Vrijednost nekretnina

float

Left

Pronađite ili postavite širinu lijeve marže.

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

Vrijednost nekretnina

float

Right

Dobiti ili postaviti pravu maržnu širinu.

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

Vrijednost nekretnina

float

Top

Pronađite ili postavite gornju širinu marže.

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

Vrijednost nekretnina

float

Methods

Sljedeći članakEquals (Margins)

Provjerite jesu li dvije marginske strukture jednake.

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

Struktura margina.

Returns

bool

To je sustav.Boolean.

Razlika između objekata (objekta)

Provjerite jesu li dvije marginske strukture jednake.

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

bilo kojeg predmeta.

Returns

bool

To je sustav.Boolean.

Slijedeći članakHashCode()

Služi kao hash funkcija za tip.

public override int GetHashCode()
   {
   }

Returns

int

Slijedeći članakInt32.

Operators

operator = = (Margins i Margins)

Provjerite jesu li dvije marginske strukture jednake.

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

Struktura margina.

rhs Margins

Struktura margina treba usporediti s.

Returns

bool

To je sustav.Boolean.

Slijedeći članakMargins, Margins

Provjerite jesu li dvije marginske strukture jednake.

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

Struktura margina.

rhs Margins

Struktura margina treba usporediti s.

Returns

bool

To je sustav.Boolean.

 Hrvatski