Class RectangleF
Constructors
(constructor)(left, top, width, height)
Constructs a new instance of the RectangleF class
Declaration
constructor(left?: number, top?: number, width?: number, height?: number);
Parameters
| Type |
Name |
Description |
| number |
left |
|
| number |
top |
|
| number |
width |
|
| number |
height |
|
Properties
_propertyChanged
Declaration
protected _propertyChanged: EventWithSenderArg<RectangleF, string>;
Property Value
bottom
Declaration
set bottom(value: number);
Property Value
center
Declaration
Property Value
empty
Declaration
static get empty(): RectangleF;
Property Value
height
Declaration
get height(): number;
set height(value: number);
Property Value
id
Declaration
Property Value
left
Declaration
get left(): number;
set left(value: number);
Property Value
right
Declaration
set right(value: number);
Property Value
top
Declaration
get top(): number;
set top(value: number);
Property Value
width
Declaration
get width(): number;
set width(value: number);
Property Value
Methods
addPropertyChanged(listener)
Declaration
addPropertyChanged(listener: (sender: RectangleF, eventArgs: string) => void): void;
Parameters
| Type |
Name |
Description |
| (sender: RectangleF, eventArgs: string) => void |
listener |
|
Returns
clone()
Declaration
Returns
contains(point, includeBorder, tolerance)
Declaration
contains(point: PointF, includeBorder?: boolean, tolerance?: number): boolean;
Parameters
| Type |
Name |
Description |
| PointF |
point |
|
| boolean |
includeBorder |
|
| number |
tolerance |
|
Returns
containsRectangle(rectangle)
Declaration
containsRectangle(rectangle: RectangleF): boolean;
Parameters
Returns
equals(other)
Declaration
equals(other: RectangleF): boolean;
Parameters
Returns
FromLTRB(left, top, right, bottom)
Declaration
static FromLTRB(left: number, top: number, right: number, bottom: number): RectangleF;
Parameters
| Type |
Name |
Description |
| number |
left |
|
| number |
top |
|
| number |
right |
|
| number |
bottom |
|
Returns
fromLtrbObject(obj)
Declaration
static fromLtrbObject(obj: ILtrb): RectangleF;
Parameters
| Type |
Name |
Description |
| ILtrb |
obj |
|
Returns
FromObject(object)
Declaration
static FromObject(object: {
left: number;
top: number;
width: number;
height: number;
}): RectangleF;
Parameters
| Type |
Name |
Description |
| {
left: number;
top: number;
width: number;
height: number;
} |
object |
|
Returns
fromPoints(point1, point2)
Declaration
static fromPoints(point1: PointF, point2: PointF): RectangleF;
Parameters
Returns
fromString(str)
Declaration
static fromString(str: string): RectangleF;
Parameters
| Type |
Name |
Description |
| string |
str |
|
Returns
getExpanded(margin)
Declaration
getExpanded(margin: ILtrb): RectangleF;
Parameters
| Type |
Name |
Description |
| ILtrb |
margin |
|
Returns
getMatrix(initialRect, targetRect)
Declaration
static getMatrix(initialRect: RectangleF, targetRect: RectangleF): Matrix;
Parameters
Returns
getOverallBounds(rects)
Declaration
static getOverallBounds(rects: RectangleF[]): RectangleF;
Parameters
Returns
inflate(size)
Declaration
inflate(size: number): void;
Parameters
| Type |
Name |
Description |
| number |
size |
|
Returns
intersect(a, b)
Creates a rectangle that represents the intersetion between a and b. If there is no intersection, empty rectangle is returned.
Declaration
static intersect(a: RectangleF, b: RectangleF): RectangleF;
Parameters
Returns
intersectsWith(rect)
Determines if this rectangle intersects with rect
Declaration
intersectsWith(rect: RectangleF): boolean;
Parameters
Returns
isEmpty()
Declaration
Returns
isEqual(a, b, tolerance)
Declaration
static isEqual(a: RectangleF, b: RectangleF, tolerance?: number): boolean;
Parameters
Returns
removePropertyChanged(listener)
Declaration
removePropertyChanged(listener: (sender: RectangleF, eventArgs: string) => void): void;
Parameters
| Type |
Name |
Description |
| (sender: RectangleF, eventArgs: string) => void |
listener |
|
Returns
toJSON()
Declaration
toJSON(): {
left: number;
top: number;
width: number;
height: number;
id: any;
};
Returns
| Type |
Description |
| {
left: number;
top: number;
width: number;
height: number;
id: any;
} |
|
toString()
Declaration
Returns
union(a, b)
Declaration
static union(a: RectangleF, b: RectangleF): RectangleF;
Parameters
Returns
updateByMatrix(matrix)
Declaration
updateByMatrix(matrix: Matrix): this;
Parameters
| Type |
Name |
Description |
| Matrix |
matrix |
|
Returns