Version

Rectangle Structure Members

The following tables list the members exposed by Rectangle.

Public Constructors
 NameDescription
Public ConstructorRectangle ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyBottomReturns the y-coordinate of the bottom edge of this rectangle.  
Public Propertystatic (Shared in Visual Basic)EmptyReturns a Rectangle with the X, Y, Width, and Height properties initialized to zero.  
Public PropertyHeightReturns or sets the height of this rectangle.  
Public PropertyIsEmptyReturns a boolean value indicating whether this rectangle is empty.  
Public PropertyLeftReturns the x-coordinate of the left edge of this rectangle.  
Public PropertyRightReturns the x-coordinate of the right edge of this rectangle.  
Public PropertyTopReturns the y-coordinate of the top edge of this rectangle.  
Public PropertyWidthReturns or sets the width of this rectangle.  
Public PropertyXReturns or sets the x-coordinate of the upper-left coordinate of this rectangle.  
Public PropertyYReturns or sets the y-coordinate of the upper-left coordinate of this rectangle.  
Public Methods
 NameDescription
Public MethodContainsOverloaded. Returns a boolean value indicating whether the specified point is contained within the bounds of this rectangle.  
Public MethodEqualsIndicates whether this instance and the specified object are equal  
Public MethodGetHashCodeReturns a hash code.  
Public MethodIntersectOverloaded. Replaces this rectangle with the intersection of itself and the specified rectangle.  
Public MethodIntersectsWithReturns a boolean value indicating whether the specified Rectangle intersects with this rectangle.  
Public MethodResetResets all properties of this structure to their default values.  
Public MethodResetHeightRestores the value of the Height property to its default.  
Public MethodResetWidthRestores the value of the Width property to its default.  
Public MethodResetXRestores the value of the P:Infragistics.Win.DataVisualization.Rectangle.X property to its default.  
Public MethodResetYRestores the value of the P:Infragistics.Win.DataVisualization.Rectangle.Y property to its default.  
Public MethodShouldSerializeHeightReturns a boolean value indicating whether the Height property requires serialization.  
Public MethodShouldSerializeWidthReturns a boolean value indicating whether the Width property requires serialization.  
Public MethodShouldSerializeXReturns a boolean value indicating whether the P:Infragistics.Win.DataVisualization.Rectangle.X property requires serialization.  
Public MethodShouldSerializeYReturns a boolean value indicating whether the P:Infragistics.Win.DataVisualization.Rectangle.Y property requires serialization.  
Public MethodToStringReturns the string representation of this instance.  
Public Methodstatic (Shared in Visual Basic)UnionReturns the union of the two specified rectangles.  
Public Operators
public Operator Equality Overloaded. Overrides the == operator
public Operator Implicit Type Conversion Overloaded. Returns a DataVisualization.Rectangle instance from the specified System.Drawing.Rectangle instance.
public Operator Inequality Overloaded. Overrides the != operator
See Also