Class ViewRectangle
Represents the visible rectangle of job view.
public class ViewRectangle : INotifyPropertyChanged
- Inheritance
-
ViewRectangle
- Implements
- Inherited Members
Constructors
ViewRectangle(double)
Initializes a new instance of the ViewRectangle class.
public ViewRectangle(double area)
Parameters
area
doubleLength/width of the laser area in millimeters.
Properties
Height
Gets or sets the height in millimeters.
public double Height { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than MinHeight
-or- the value is greater than MaxHeight.
LaserArea
Gets the width/height of the laser are in millimeters.
public double LaserArea { get; }
Property Value
MaxHeight
Gets or sets the minimum height.
public double MaxHeight { get; set; }
Property Value
- double
The default value is 365mm.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 1mm.
MaxWidth
Gets or sets the maximum width.
public double MaxWidth { get; set; }
Property Value
- double
The default value is 365mm.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 1mm.
MinHeight
Gets or sets the minimum height.
public double MinHeight { get; set; }
Property Value
- double
The default value is 10mm.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 1mm.
MinWidth
Gets or sets the minimum width.
public double MinWidth { get; set; }
Property Value
- double
The default value is 10mm.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 1mm.
Width
Gets or sets the width in millimeters.
public double Width { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than MinWidth
-or- the value is greater than MaxWidth.
X
Gets or sets the X position in millimeters.
public double X { get; set; }
Property Value
Y
Gets or sets the minimum Y position in millimeters.
public double Y { get; set; }
Property Value
Methods
Set(double, double, double, double)
Sets the properties at once.
public void Set(double x, double y, double width, double height)
Parameters
x
doubleX position i millimeters.
y
doubleY position i millimeters.
width
doubleWidth position i millimeters.
height
doubleHeight position i millimeters.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged