Back to Website
Show / Hide Table of Contents

Class Margin

Inheritance
System.Object
Margin
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class Margin

Constructors

Margin(Single)

Declaration
public Margin(float margin)
Parameters
Type Name Description
System.Single margin

Margin(Single, Single)

Declaration
public Margin(float horizontal, float vertical)
Parameters
Type Name Description
System.Single horizontal
System.Single vertical

Margin(Single, Single, Single, Single)

Declaration
public Margin(float left, float top, float right, float bottom)
Parameters
Type Name Description
System.Single left
System.Single top
System.Single right
System.Single bottom

Properties

Bottom

Declaration
public float Bottom { get; set; }
Property Value
Type Description
System.Single

Left

Declaration
public float Left { get; set; }
Property Value
Type Description
System.Single

Right

Declaration
public float Right { get; set; }
Property Value
Type Description
System.Single

Top

Declaration
public float Top { get; set; }
Property Value
Type Description
System.Single

Methods

Clone()

Declaration
public Margin Clone()
Returns
Type Description
Margin

Equals(Margin)

Declaration
protected bool Equals(Margin other)
Parameters
Type Name Description
Margin other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetBytes()

Declaration
public byte[] GetBytes()
Returns
Type Description
System.Byte[]

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

GetMargin(RectangleF, RectangleF)

Declaration
public static Margin GetMargin(RectangleF inner, RectangleF outer)
Parameters
Type Name Description
System.Drawing.RectangleF inner
System.Drawing.RectangleF outer
Returns
Type Description
Margin

Inflate(Single)

Declaration
public void Inflate(float amount)
Parameters
Type Name Description
System.Single amount

IsEmpty(Margin)

Declaration
public static bool IsEmpty(Margin margin)
Parameters
Type Name Description
Margin margin
Returns
Type Description
System.Boolean

OnPropertyChanged(String)

Declaration
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
Type Name Description
System.String propertyName

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Operators

Addition(Margin, Margin)

Declaration
public static Margin operator +(Margin a, Margin b)
Parameters
Type Name Description
Margin a
Margin b
Returns
Type Description
Margin

Implicit(Single to Margin)

Declaration
public static implicit operator Margin(float value)
Parameters
Type Name Description
System.Single value
Returns
Type Description
Margin

Subtraction(Margin, Margin)

Declaration
public static Margin operator -(Margin a, Margin b)
Parameters
Type Name Description
Margin a
Margin b
Returns
Type Description
Margin

Implements

System.ComponentModel.INotifyPropertyChanged
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback