Struct Margins

Struct Margins

名称: Aspose.Note 合計: Aspose.Note.dll (25.4.0)

ノードの範囲を指定します。

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

相続人

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

Constructors

マルギン(フロア、フローア)

Aspose.Note.Margins 構造の新しい例を開始します。指定された左、右、上、下のマージン。

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

Parameters

left float

左のマージン幅。

right float

右のマージン幅。

top float

トップ マージン 幅

bottom float

下のマージン幅。

Fields

Empty

空っぽのマージン。

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.

フィールド価値

Margins

Properties

Bottom

入力または下限の範囲を設定します。

public readonly float Bottom
   {
      get;
      set;
   }

不動産価値

float

Left

左のマージン幅を取得または設定します。

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

不動産価値

float

Right

正しいマージン幅を取得または設定します。

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

不動産価値

float

Top

トップマージン幅を取得または設定します。

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

不動産価値

float

Methods

マーガン(Margins)

2つのマージン構造が平等であるかどうかを検証します。

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

マルギンの構造

Returns

bool

システム・ボーレーン

オブジェクト(Object)

2つのマージン構造が平等であるかどうかを検証します。

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

すべてのオブジェクト

Returns

bool

システム・ボーレーン

ハッシュコード( )

タイプのハッシュ機能として機能します。

public override int GetHashCode()
   {
   }

Returns

int

システム・インテル32

Operators

オペレーター=(マルギン、マージン)

2つのマージン構造が平等であるかどうかを検証します。

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

マルギンの構造

rhs Margins

マルギンの構造と比較する。

Returns

bool

システム・ボーレーン

オペレーター!=(マルギン、マージン)

2つのマージン構造が平等ではないかどうかをテストします。

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

マルギンの構造

rhs Margins

マルギンの構造と比較する。

Returns

bool

システム・ボーレーン

 日本語