Skip to end of metadata
Go to start of metadata

Represent a rectangle.

Definition

public class Rectangle

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Rectangle Constructor() Initializes a new instance of the Rectangle class.
Rectangle Constructor(float, float, float, float) Initializes a new instance of the Rectangle class.

Public Properties

Bottom Gets or sets the bottom.
Height Gets the height.
Left Gets or sets the left.
Right Gets or sets the right.
Top Gets or sets the top.
Width Gets the width.

Public Constructors

public Rectangle()

Initializes a new instance of the Rectangle class.

public Rectangle(float left, float top, float right, float bottom)

Initializes a new instance of the Rectangle class.

Parameters

left The left.
top The top.
right The right.
bottom The bottom.

Public Properties

public float Bottom { get; set; }

Gets or sets the bottom.

public float Height { get; }

Gets the height.

public float Left { get; set; }

Gets or sets the left.

public float Right { get; set; }

Gets or sets the right.

public float Top { get; set; }

Gets or sets the top.

public float Width { get; }

Gets the width.

  • No labels