Skip to main content

Class SafetyLine

Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class SafetyLine

Inheritance: System.Object -> SafetyLine

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetType
  • System.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
TypeNameDescription
Aurigma.DesignAtoms.Model.SafetyLineother
System.BooleanmergeMargin

GetRectangle

public RectangleF GetRectangle(RectangleF bounds)
Parameters
TypeNameDescription
System.Drawing.RectangleFbounds
Returns

System.Drawing.RectangleF

GetCornerRadiuses

public SizeF[] GetCornerRadiuses(RectangleF bounds, float dpi)
Parameters
TypeNameDescription
System.Drawing.RectangleFbounds
System.Singledpi
Returns

System.Drawing.SizeF[]

Clone

public SafetyLine Clone()
Returns

Aurigma.DesignAtoms.Model.SafetyLine

Equals

protected bool Equals(SafetyLine other)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.SafetyLineother
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

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
Was this page helpful?