Skip to main content

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.

public class FieldRectangleAttribute : 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.

NameTypeDescription
xInt32The x-coordinate of the upper-left corner of the rectangle.
yInt32The y-coordinate of the upper-left corner of the rectangle.
widthInt32The width of the rectangle.
heightInt32The height of the rectangle.

FieldRectangleAttribute(rectangle)

Initializes a new instance of the FieldRectangleAttribute class with a rectangle specified as a string.

NameTypeDescription
rectangleStringA 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.