FieldRectangleAttribute
Namespace: Wisej.AI
Assembly: Wisej.AI
Represents an attribute that defines a rectangular area using a Rectangle associated to a property or a control.
- C#
- VB.NET
public class FieldRectangleAttribute : Attribute
Public Class FieldRectangleAttribute
Inherits Attribute
This attribute can be used to specify a rectangle by providing either its dimensions or a string representation.
Constructors
FieldRectangleAttribute(x, y, width, height)
Initializes a new instance of the FieldRectangleAttribute class with specified dimensions.
| Name | Type | Description |
|---|---|---|
| x | Int32 | The x-coordinate of the upper-left corner of the rectangle. |
| y | Int32 | The y-coordinate of the upper-left corner of the rectangle. |
| width | Int32 | The width of the rectangle. |
| height | Int32 | The height of the rectangle. |
FieldRectangleAttribute(rectangle)
Initializes a new instance of the FieldRectangleAttribute class with a rectangle specified as a string.
| Name | Type | Description |
|---|---|---|
| rectangle | String | A string representation of the rectangle. |
The string should be in a format that can be converted to a Rectangle using the type converter.
Properties
Rectangle
Rectangle: Gets or sets the Rectangle associated with this attribute.