New to Telerik UI for WinFormsStart a free 30-day trial

Rect

Struct

Definition

Namespace:Telerik.WinControls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
[TypeConverter(typeof(RectConverter))]
public struct Rect : IFormattable

Implements: IFormattable

Inherited Members ValueType.ToString()

Constructors

C#
public Rect(double x, double y, double width, double height)
Parameters:xdoubleydoublewidthdoubleheightdouble
C#
public Rect(Point point1, Point point2)
Parameters:point1Pointpoint2Point
C#
public Rect(Point location, SizeF size)
Parameters:locationPointsizeSizeF
C#
public Rect(Point point, Vector vector)
Parameters:pointPointvectorVector
C#
public Rect(SizeF size)
Parameters:sizeSizeF

Properties

C#
public double Bottom { get; }
C#
public Point BottomLeft { get; }
C#
public Point BottomRight { get; }
C#
public static Rect Empty { get; }
C#
public double Height { get; set; }
C#
public bool IsEmpty { get; }
C#
public double Left { get; }
C#
public Point Location { get; set; }
C#
public double Right { get; }
C#
public SizeF Size { get; set; }
C#
public double Top { get; }
C#
public Point TopLeft { get; }
C#
public Point TopRight { get; }
C#
public double Width { get; set; }
C#
public double X { get; set; }
C#
public double Y { get; set; }

Methods

C#
public bool Contains(double x, double y)
Parameters:xdoubleydoubleReturns:

bool

C#
public bool Contains(Point point)
Parameters:pointPointReturns:

bool

C#
public bool Contains(Rect rect)
Parameters:rectRectReturns:

bool

C#
public override bool Equals(object o)
Parameters:oobjectReturns:

bool

Overrides: ValueType.Equals(object)

C#
public static bool Equals(Rect rect1, Rect rect2)
Parameters:rect1Rectrect2RectReturns:

bool

C#
public bool Equals(Rect value)
Parameters:valueRectReturns:

bool

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

C#
public void Inflate(double width, double height)
Parameters:widthdoubleheightdouble
C#
public static Rect Inflate(Rect rect, double width, double height)
Parameters:rectRectwidthdoubleheightdoubleReturns:

Rect

C#
public static Rect Inflate(Rect rect, SizeF size)
Parameters:rectRectsizeSizeFReturns:

Rect

C#
public void Inflate(SizeF size)
Parameters:sizeSizeF
C#
public static Rect Intersect(Rect rect1, Rect rect2)
Parameters:rect1Rectrect2RectReturns:

Rect

C#
public void Intersect(Rect rect)
Parameters:rectRect
C#
public bool IntersectsWith(Rect rect)
Parameters:rectRectReturns:

bool

C#
public void Offset(double offsetX, double offsetY)
Parameters:offsetXdoubleoffsetYdouble
C#
public static Rect Offset(Rect rect, double offsetX, double offsetY)
Parameters:rectRectoffsetXdoubleoffsetYdoubleReturns:

Rect

C#
public static Rect Offset(Rect rect, Vector offsetVector)
Parameters:rectRectoffsetVectorVectorReturns:

Rect

C#
public void Offset(Vector offsetVector)
Parameters:offsetVectorVector
C#
public static Rect Parse(string source)
Parameters:sourcestringReturns:

Rect

C#
public void Scale(double scaleX, double scaleY)
Parameters:scaleXdoublescaleYdouble
C#
public void Union(Point point)
Parameters:pointPoint
C#
public static Rect Union(Rect rect, Point point)
Parameters:rectRectpointPointReturns:

Rect

C#
public static Rect Union(Rect rect1, Rect rect2)
Parameters:rect1Rectrect2RectReturns:

Rect

C#
public void Union(Rect rect)
Parameters:rectRect

Operators

C#
public static implicit operator Rect(RectangleF p)
Parameters:pRectangleFReturns:

Rect

C#
public static implicit operator Rectangle(Rect p)
Parameters:pRectReturns:

Rectangle

C#
public static implicit operator RectangleF(Rect p)
Parameters:pRectReturns:

RectangleF

C#
public static bool operator !=(Rect rect1, Rect rect2)
Parameters:rect1Rectrect2RectReturns:

bool

C#
public static bool operator ==(Rect rect1, Rect rect2)
Parameters:rect1Rectrect2RectReturns:

bool