Table of Contents

Class SvgRect

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.dll

Rectangles are defined as consisting of a (x,y) coordinate pair identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be non-negative.

public sealed class SvgRect : ISvgRect, IEquatable<ISvgRect>, IEquatable<SvgRect>
Inheritance
SvgRect
Implements
Inherited Members

Constructors

SvgRect(double, double, double, double)
SvgRect(string)

Fields

Empty

Properties

Height
IsEmpty
Width
X
Y

Methods

Contains(SvgPoint)

This determines if the specified point is contained within this SvgRect structure.

Contains(SvgRect)

This determines if the rectangular region represented by rect is entirely contained within this SvgRect structure.

Contains(double, double)

This determines if the specified point is contained within this SvgRect structure.

Equals(ISvgRect)

This tests whether the specified SvgRect is with the same location and size of this SvgRect.

Equals(SvgRect)

This tests whether the specified SvgRect is with the same location and size of this SvgRect.

Equals(object)

This tests whether an object is a SvgRect with the same location and size of this SvgRect.

GetHashCode()

Gets the hash code for this SvgRect structure. For information about the use of hash codes, see Object.GetHashCode.

Inflate(SvgRect, float, float)

Creates and returns an inflated copy of the specified SvgRect structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.

Inflate(double, double)

Inflates this SvgRect structure by the specified amount.

Intersect(SvgRect)
Intersection(SvgRect)

This replaces this SvgRect structure with the intersection of itself and the specified SvgRect structure.

Intersection(SvgRect, SvgRect)

Returns a SvgRect structure that represents the intersection of two rectangles. If there is no intersection, and empty SvgRect is returned.

Intersects(SvgRect)

This determines if this rectangle intersects with rect.

Offset(double, double)

Adjusts the location of this rectangle by the specified amount.

ToString()

Returns a string that represents the current object.

Union(SvgRect, SvgRect)

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Operators

operator ==(SvgRect, SvgRect)

This tests whether two SvgRect structures have equal location and size.

operator !=(SvgRect, SvgRect)

This tests whether two SvgRect structures differ in location or size.