Instant properties: center
The instant property center represents the position in the center of a rectangle stored within a rect operand and is expressed as a point value.
Declaration
point rect.center
Discussion
The read access to this property results in coordinates of the position lying in the center of a rectangle. Please note, this property is read-only. The write access to this property is not allowed. For example:
var rect r = <100,200,110,220>; // Get the center position of the rectangle var point result = r.center; // result = <105,210> // Modification is not allowed r.center = <50,50>; // Chora compiler error