Skip to main content

Class Margin

Namespace: Aurigma.DesignAtoms.Model​
Assembly: Aurigma.DesignAtoms.Model.dll​
Syntax
public 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

Constructors​

Margin​

public Margin(float left, float top, float right, float bottom)

Margin​

public Margin(float horizontal, float vertical)

Margin​

public Margin(float margin)

Properties​

Left​

public float Left { get; set; }

Top​

public float Top { get; set; }
public float Right { get; set; }

Bottom​

public float Bottom { get; set; }

IsUniform​

public bool IsUniform { get; }

UniformValue​

public float UniformValue { get; }

Methods​

Inflate​

public void Inflate(float amount)
Parameters​
TypeNameDescription
System.Singleamount

GetMargin​

public static Margin GetMargin(RectangleF inner, RectangleF outer)
Parameters​
TypeNameDescription
System.Drawing.RectangleFinner
System.Drawing.RectangleFouter
Returns​

Aurigma.DesignAtoms.Model.Margin

GetBytes​

public byte[] GetBytes()
Returns​

System.Byte[]

Clone​

public Margin Clone()
Returns​

Aurigma.DesignAtoms.Model.Margin

ToString​

public override string ToString()
Returns​

System.String

Overrides​
  • System.Object.ToString

Equals​

protected bool Equals(Margin other)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Marginother
Returns​

System.Boolean

Equals​

public override bool Equals(object obj)
Parameters​
TypeNameDescription
System.Objectobj
Returns​

System.Boolean

Overrides​
  • System.Object.Equals(System.Object)

GetHashCode​

public override int GetHashCode()
Returns​

System.Int32

Overrides​
  • System.Object.GetHashCode

IsEmpty​

public static bool IsEmpty(Margin margin)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Marginmargin
Returns​

System.Boolean

OnPropertyChanged​

[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters​
TypeNameDescription
System.StringpropertyName

Events​

PropertyChanged​

public event PropertyChangedEventHandler PropertyChanged
Was this page helpful?