RectangleSet Structure
The area covered by a set of rectangles.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public sealed class RectangleSet : EngineValueTypeRemarks
The area covered by a set of rectangles. A RectangleSet can be regarded as a collection of Rectangle objects, with some additional methods.
Inheritance Hierarchy
System.Object
EngineValueType
RectangleSet
Platforms
Windows, Linux, Android
RectangleSet Members
The RectangleSet type has the following members.
Constructors
| Name | Description |
|---|---|
| RectangleSet | Creates a new instance of the RectangleSet class. |
Properties
| Name | Description |
|---|---|
| Bounds | The bounding rectangle of a RectangleSet. |
| IsEmpty | Gets a value that tells whether the RectangleSet is empty. |
| Rectangles | Gets the collection of rectangles that the RectangleSet consists of. |
Methods
| Name | Description |
|---|---|
| Add | Overloaded. Adds another area to this RectangleSet. |
| Clear | Removes all rectangles from this RectangleSet. |
| ClipBy | Clips a RectangleSet by a rectangle. |
| Equals | Overloaded. Determines whether two RectangleSet objects have the same value. |
| GetHashCode | Returns the hash code for this RectangleSet. |
| IsCovered | Overloaded. Checks whether an area is completely covered by this RectangleSet. |
| Determines whether two specified RectangleSet objects have the same value. | |
| Determines whether two specified RectangleSet objects have different values. | |
| Subtract | Overloaded. Subtracts another area from this RectangleSet. |
| ToString | Converts this RectangleSet to a human readable string. |