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.GetTypeSystem.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; }
Right
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
| Type | Name | Description |
|---|---|---|
System.Single | amount |
GetMargin
public static Margin GetMargin(RectangleF inner, RectangleF outer)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | inner | |
System.Drawing.RectangleF | outer |
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Margin | other |
Returns
System.Boolean
Equals
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj |
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Margin | margin |
Returns
System.Boolean
OnPropertyChanged
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | propertyName |
Events
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged