Class PrintArea
Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class PrintArea : ModelComponent, ICloneable
Inheritance: System.Object -> Aurigma.DesignAtoms.Model.ModelComponent -> PrintArea
Implements
System.ComponentModel.INotifyPropertyChangedSystem.ICloneable
Inherited Members
- Aurigma.DesignAtoms.Model.ModelComponent.UserTagKey
- Aurigma.DesignAtoms.Model.ModelComponent.WarningTagKey
- Aurigma.DesignAtoms.Model.ModelComponent.Tags
- Aurigma.DesignAtoms.Model.ModelComponent.GenerateId()
- Aurigma.DesignAtoms.Model.ModelComponent.ToString()
- Aurigma.DesignAtoms.Model.ModelComponent.Equals(Aurigma.DesignAtoms.Model.ModelComponent)
- Aurigma.DesignAtoms.Model.ModelComponent.Clone(System.Boolean)
- Aurigma.DesignAtoms.Model.ModelComponent.Clone()
- Aurigma.DesignAtoms.Model.ModelComponent.OnPropertyChanged(System.String)
- Aurigma.DesignAtoms.Model.ModelComponent.Version
- Aurigma.DesignAtoms.Model.ModelComponent.Id
- Aurigma.DesignAtoms.Model.ModelComponent.Name
- Aurigma.DesignAtoms.Model.ModelComponent.PropertyChanged
System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
PrintArea
public PrintArea(RectangleF? bounds = null, Collection<SafetyLine> safetyLines = null, Collection<CropMark> cropMarks = null, Margin bleed = null, Margin slug = null, Path shape = null)
Properties
SafetyLines
public Collection<SafetyLine> SafetyLines { get; protected set; }
CropMarks
public Collection<CropMark> CropMarks { get; protected set; }
Shape
public Path Shape { get; set; }
Bounds
public RectangleF Bounds { get; set; }
Bleed
public Margin Bleed { get; set; }
Slug
public Margin Slug { get; set; }
IsRectangle
public bool IsRectangle { get; }
HasMargin
public bool HasMargin { get; }
Methods
OnBleedPropertyChanged
protected void OnBleedPropertyChanged(object sender = null, EventArgs e = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | sender | |
System.EventArgs | e |
OnSlugPropertyChanged
protected void OnSlugPropertyChanged(object sender = null, EventArgs e = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | sender | |
System.EventArgs | e |
DeepClone<TItem>
public override TItem DeepClone<TItem>(TItem clone = null, bool keepIds = false)
where TItem : ModelComponent
Parameters
| Type | Name | Description |
|---|---|---|
<TItem> | clone | |
System.Boolean | keepIds |
Returns
<TItem>
Overrides
Aurigma.DesignAtoms.Model.ModelComponent.DeepClone``1(<TItem>,System.Boolean)
GetCropRectangle
public RectangleF? GetCropRectangle(string safetyLineName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | safetyLineName |
Returns
System.Nullable<System.Drawing.RectangleF>
GetBounds
public RectangleF GetBounds(PrintAreaMarginType printAreaBoundsType = PrintAreaMarginType.Trim)
Parameters
| Type | Name | Description |
|---|---|---|
PrintAreaMarginType | printAreaBoundsType |
Returns
System.Drawing.RectangleF
Equals
protected bool Equals(PrintArea other)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.PrintArea | other |
Returns
System.Boolean
Equals
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj |
Returns
System.Boolean
Overrides
GetHashCode
public override int GetHashCode()
Returns
System.Int32
Overrides
Fields
ParentSurface
public Surface ParentSurface
BleedSafetyLineName
public static string BleedSafetyLineName
TrimSafetyLineName
public static string TrimSafetyLineName