FArea Class

An area within float coordinates.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2414.4032
C#
[TypeConverterAttribute(typeof(FAreaTypeConverter))]
public class FArea
Inheritance
Object    FArea

Remarks

The use of this class is similar to that of RectangleF. The difference is that this is item creates a first-class object - usable in all circumstances where references are appropriate.

The edges of this class can be changed by setting Bottom, Left, Right, and Top. To position the area, set the X and Y coordinates.

Constructors

FArea Create a new instance of the FArea Item.
FArea(FArea) Create a new instance of the FArea item.
FArea(FPoint, FPoint) Create a new instance of the FArea item.
FArea(FPoint, FSize) Create a new instance of the FArea item.
FArea(Single, Single, Single, Single) Create a new instance of the FArea Item.

Properties

Bottom Get/Set the bottom coordinate.
Height Get/Set the height of the area.
Left Get/Set the left coordinate.
ReadOnly Get/Set a value indicating whether this item is read-only.
Right Get/Set the right coordinate.
Top Get/Set the top coordinate.
Width Get/Set the width of the area.
X Get/Set the X coordinate.
Y Get/Set the Y coordinate.

Methods

BoundingBox Return the bounding box that contains all of the specified areas.
Clear Clear the area without raising an event.
Clone Return a memberwise clone of the provided area.
Contains Return a value indicating whether the container area fully contains the specified subject.
Delta Return the delta values between the caller's area and the new and original areas.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetIntersections(FArea, FArea) Return the intersections of two areas.
GetIntersections(FArea, FLine) Return the intersections of a line with a rectangle.
GetLines Return four lines representing the bounding edge of the provided area.
GetType
(Inherited from Object)
GetVertices Return the vertices of the area.
HasIntersection(FArea, FArea) Return a value indicating whether the first provided area intersects with the second one.
HasIntersection(FArea, FLine) Return a value indicating whether the specified area intersects with the provided line.
HasVolume Return a value indicating whether the specified area has a usable volume.
IsDifferent Return a value indicating whether the values of the two areas are different.
IsEmpty Return a value indicating whether the provided area is empty.
IsPointAtCorner Return a value indicating whether the provided point is at one of the corners of the caller's rectangle.
Location Return the location of the specified area.
LocationOpposite Return the opposite corner location of the specified area.
MemberwiseClone
(Inherited from Object)
MoveTo(FArea, FPoint) Move the specified area to the new location.
MoveTo(FArea, Single, Single) Move the specified area to the new location.
OnBottomChanged Raises the BottomChanged event when the value of the Bottom property has changed.
OnHeightChanged Raises the HeightChanged event when the value of the Height property has changed.
OnLeftChanged Raises the LeftChanged event when the value of the Left property has changed.
OnLocationChanged Raises the LocationChanged event when the values of the X or Y properties have changed.
OnRightChanged Raises the RightChanged event when the value of the Right property has changed.
OnTopChanged Raises the TopChanged event when the value of the Top property has changed.
OnWidthChanged Raises the WidthChanged event when the value of the Width property has changed.
RaiseCoordinatesChanged Raise the coordinate changed events.
Scale(FArea, FArea) Return the scale of the two areas.
Scale(FArea, Single) Return the scaled version of the provided area with the specified scale.
Set(FArea, FArea, Single, Single) Set the details of the target area from the source.
Set(FArea, Single, Single, Single, Single) Set the details of the area.
SetLocation Update the location of the specified area.
SetSize Update the size of the target area.
Shrink Return a shrunken version of the specified area.
Size Return the size of the specified area.
ToString Return the string representation of this instance.
(Overrides ObjectToString)
TransferValues Transfer the member values from the source to the target, raising any associated events where appropriate.
Translate(FArea, FPoint) Translate the specified area to the new location.
Translate(FArea, Single, Single) Translate the specified area by a relative amount.

Events

BottomChanged Fired when the bottom value has changed.
HeightChanged Fired when the height value has changed.
LeftChanged Fired when the left value has changed.
LocationChanged Fired when the overall location has changed.
RightChanged Fired when the right value has changed.
TopChanged Fired when the top value has changed.
WidthChanged Fired when the width value has changed.

See Also