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()
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
Constructors
SafetyLine()
Declaration
SafetyLine(String, Single, RgbColor, RgbColor, Single, Single, Nullable<Single>, Nullable<Single>, String)
Declaration
public SafetyLine(string name, float margin, RgbColor color, RgbColor altColor, float stepPx, float widthPx, float? leftRightMargin = null, float? topBottomMargin = null, string borderRadius = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Single |
margin |
|
| RgbColor |
color |
|
| RgbColor |
altColor |
|
| System.Single |
stepPx |
|
| System.Single |
widthPx |
|
| System.Nullable<System.Single> |
leftRightMargin |
|
| System.Nullable<System.Single> |
topBottomMargin |
|
| System.String |
borderRadius |
|
Fields
AltColor
Declaration
Field Value
BorderRadius
Declaration
public string BorderRadius
Field Value
| Type |
Description |
| System.String |
|
Color
Declaration
Field Value
Margin
Declaration
Field Value
Name
Declaration
Field Value
| Type |
Description |
| System.String |
|
PdfBox
Declaration
Field Value
| Type |
Description |
| System.Nullable<PdfBox> |
|
StepPx
Declaration
Field Value
| Type |
Description |
| System.Single |
|
WidthPx
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Methods
Clone()
Declaration
public SafetyLine Clone()
Returns
Equals(SafetyLine)
Declaration
protected bool Equals(SafetyLine other)
Parameters
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[] |
|
GetCornerRadiuses(RectangleF, Single)
Declaration
public SizeF[] GetCornerRadiuses(RectangleF bounds, float dpi)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
bounds |
|
| System.Single |
dpi |
|
Returns
| Type |
Description |
| System.Drawing.SizeF[] |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetRectangle(RectangleF)
Declaration
public RectangleF GetRectangle(RectangleF bounds)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
bounds |
|
Returns
| Type |
Description |
| System.Drawing.RectangleF |
|
Merge(SafetyLine, Boolean)
Declaration
public void Merge(SafetyLine other, bool mergeMargin = false)
Parameters
| Type |
Name |
Description |
| SafetyLine |
other |
|
| System.Boolean |
mergeMargin |
|
Normalize()
Declaration