Struct Margins

Struct Margins

Název místa: Aspose.Note Shromáždění: Aspose.Note.dll (25.4.0)

Určuje rozměry okrajů uzlu.

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

Dědiční členové

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

Constructors

Margins (plavba, plavidlo a plavba)

Začíná nová instance Aspose.Note.Margins strukturys uvedenými levé, pravé, horní a dolní hranice.

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

Parameters

left float

Levá marginální šířka.

right float

Pravá marginální šířka.

top float

Nejvyšší marginální šířka.

bottom float

Dolní marginální šířka.

Fields

Empty

a prázdné 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.

Polní hodnota

Margins

Properties

Bottom

Získáte nebo nastavíte spodní šířku.

public readonly float Bottom
   {
      get;
      set;
   }

Hodnota nemovitosti

float

Left

Získáte nebo nastavte levnou šířku.

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

Hodnota nemovitosti

float

Right

Získáte nebo nastavte správnou šířku hranice.

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

Hodnota nemovitosti

float

Top

Získáte nebo nastavte nejvyšší šířku.

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

Hodnota nemovitosti

float

Methods

Rozdíl mezi marginami (margin)

Zkontrolujte, zda jsou dvě maržové struktury stejné.

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 Marginů.

Returns

bool

Systém je Boolean.

Jednotlivé objekty (objekt)

Zkontrolujte, zda jsou dvě maržové struktury stejné.

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

Jakýkoliv předmět

Returns

bool

Systém je Boolean.

Připravte si kód()

Slouží jako hash funkce pro typ.

public override int GetHashCode()
   {
   }

Returns

int

Vlastní systém.Int32.

Operators

Členové skupiny = (Margins, Margins)

Zkontrolujte, zda jsou dvě maržové struktury stejné.

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 Marginů.

rhs Margins

Struktura Margins je třeba srovnávat s.

Returns

bool

Systém je Boolean.

Členové skupiny! = (Margins, Margins)

Zkontrolujte, zda jsou dvě maržové struktury nerovnoměrné.

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 Marginů.

rhs Margins

Struktura Margins je třeba srovnávat s.

Returns

bool

Systém je Boolean.

 Čeština