Class SafetyLine
Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class SafetyLine
Inheritance: System.Object -> SafetyLine
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
SafetyLine
public SafetyLine()
SafetyLine
public SafetyLine(string name, float margin, RgbColor color, RgbColor altColor, float stepPx, float widthPx, float? leftRightMargin = null, float? topBottomMargin = null, string borderRadius = null)
Methods
Normalize
public void Normalize()
Merge
public void Merge(SafetyLine other, bool mergeMargin = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.SafetyLine | other | |
System.Boolean | mergeMargin |
GetRectangle
public RectangleF GetRectangle(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | bounds |
Returns
System.Drawing.RectangleF
GetCornerRadiuses
public SizeF[] GetCornerRadiuses(RectangleF bounds, float dpi)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | bounds | |
System.Single | dpi |
Returns
System.Drawing.SizeF[]
Clone
public SafetyLine Clone()
Returns
Aurigma.DesignAtoms.Model.SafetyLine
Equals
protected bool Equals(SafetyLine other)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.SafetyLine | 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
GetBytes
public byte[] GetBytes()
Returns
System.Byte[]
Fields
Name
public string Name
Margin
public Margin Margin
Color
public RgbColor Color
AltColor
public RgbColor AltColor
StepPx
public float StepPx
WidthPx
public float WidthPx
BorderRadius
public string BorderRadius
PdfBox
public PdfBox? PdfBox