Table of Contents

Class ViewRectangle

Namespace
Loehnert.Lisrt.Laser.Keyence.Jobs.ViewModels
Assembly
Loehnert.Lisrt.Laser.Keyence.dll

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 double

Length/width of the laser area in millimeters.

Properties

Height

Gets or sets the height in millimeters.

public double Height { get; set; }

Property Value

double

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

double

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

double

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

double

Y

Gets or sets the minimum Y position in millimeters.

public double Y { get; set; }

Property Value

double

Methods

Set(double, double, double, double)

Sets the properties at once.

public void Set(double x, double y, double width, double height)

Parameters

x double

X position i millimeters.

y double

Y position i millimeters.

width double

Width position i millimeters.

height double

Height position i millimeters.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler