Table of Contents

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

Empty

Represents an instance of the SvgRectF structure with its members uninitialized.

Properties

Bottom

Gets the y-coordinate that is the sum of Y and Height of this SvgRectF structure.

Height

Gets or sets the height of this SvgRectF structure.

IsEmpty

Tests whether the Width or Height property of this SvgRectF has a value of zero.

Left

Gets the x-coordinate of the left edge of this SvgRectF structure.

Location

Gets or sets the coordinates of the upper-left corner of this SvgRectF structure.

Right

Gets the x-coordinate that is the sum of X and Width of this SvgRectF structure.

Size

Gets or sets the size of this SvgRectF.

Top

Gets the y-coordinate of the top edge of this SvgRectF structure.

Width

Gets or sets the width of this SvgRectF structure.

X

Gets or sets the x-coordinate of the upper-left corner of this SvgRectF structure.

Y

Gets or sets the y-coordinate of the upper-left corner of this SvgRectF structure.

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.

Intersect(SvgRectF)
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.