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()
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
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
Returns
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
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
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
Returns
Implicit(Single to Margin)
Declaration
public static implicit operator Margin(float value)
Parameters
| Type |
Name |
Description |
| System.Single |
value |
|
Returns
Subtraction(Margin, Margin)
Declaration
public static Margin operator -(Margin a, Margin b)
Parameters
Returns
Implements
System.ComponentModel.INotifyPropertyChanged