Struct SvgRectF
- Namespace
- SharpVectors.Dom.Svg
- Assembly
- SharpVectors.Core.dll
This stores a set of four float precision numbers that represent the location and size of a rectangle.
[Serializable]
public struct SvgRectF : IEquatable<SvgRectF>
- Implements
- Inherited Members
Constructors
- SvgRectF(SvgPointF, SvgSizeF)
Initializes a new instance of the SvgRectF structure with the specified location and size.
- SvgRectF(float, float, float, float)
Initializes a new instance of the SvgRectF structure with the specified location and size.
Fields
Properties
Methods
- Contains(SvgPointF)
This determines if the specified point is contained within this SvgRectF structure.
- Contains(SvgRectF)
This determines if the rectangular region represented by rect is entirely contained within this SvgRectF structure.
- Contains(float, float)
This determines if the specified point is contained within this SvgRectF structure.
- Create(float, float, float, float)
Creates a SvgRectF structure with upper-left corner and lower-right corner at the specified locations.
- Equals(SvgRectF)
This tests whether the specified SvgRectF is with the same location and size of this SvgRectF.
- Equals(object)
This tests whether an object is a SvgRectF with the same location and size of this SvgRectF.
- GetHashCode()
Gets the hash code for this SvgRectF structure. For information about the use of hash codes, see Object.GetHashCode.
- Inflate(SvgRectF, float, float)
Creates and returns an inflated copy of the specified SvgRectF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
- Inflate(SvgSizeF)
Inflates this SvgRectF by the specified amount.
- Inflate(float, float)
Inflates this SvgRectF structure by the specified amount.
- Intersection(SvgRectF)
This replaces this SvgRectF structure with the intersection of itself and the specified SvgRectF structure.
- Intersection(SvgRectF, SvgRectF)
Returns a SvgRectF structure that represents the intersection of two rectangles. If there is no intersection, and empty SvgRectF is returned.
- Intersects(SvgRectF)
This determines if this rectangle intersects with rect.
- Offset(SvgPointF)
Adjusts the location of this rectangle by the specified amount.
- Offset(float, float)
Adjusts the location of this rectangle by the specified amount.
- ToString()
Converts the Location and Size of this SvgRectF to a human-readable string.
- Union(SvgRectF, SvgRectF)
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
Operators
- operator ==(SvgRectF, SvgRectF)
This tests whether two SvgRectF structures have equal location and size.
- operator !=(SvgRectF, SvgRectF)
This tests whether two SvgRectF structures differ in location or size.