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
상속 회원들
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.
필드 가치
Properties
Bottom
그것은 바닥 마진 폭을 얻거나 설정합니다.
public readonly float Bottom
{
get;
set;
}
부동산 가치
Left
왼쪽 마진 폭을 얻거나 설정합니다.
public float Left
{
get => this.Left;
set => this.Left = value;
}
부동산 가치
Right
올바른 마진 폭을 얻거나 설정합니다.
public float Right
{
get => this.Right;
set => this.Right = value;
}
부동산 가치
Top
그것은 상단 마진 폭을 얻거나 설정합니다.
public float Top
{
get => this._top;
set => this._top = value;
}
private float _top;
부동산 가치
Methods
마르가스 (Margins )
두 마진 구조가 동일한지 여부를 테스트합니다.
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
시스템 - Boolean
동등한 개체(Object)
두 마진 구조가 동일한지 여부를 테스트합니다.
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
시스템 - Boolean
하스 코드( )
그것은 그 유형에 대한 해시 기능으로 사용됩니다.
public override int GetHashCode()
{
}
Returns
시스템.Int32에 해당되는 글 1건
Operators
운영자 = = (Margins, Margins)
두 마진 구조가 동일한지 여부를 테스트합니다.
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
Margins의 구조와 비교할 수 있습니다.
Returns
시스템 - Boolean
운영자!=(마르기니, 마르지니)
두 개의 마진 구조가 동일하지 않은지 테스트하십시오.
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
Margins의 구조와 비교할 수 있습니다.
Returns
시스템 - Boolean