Represents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.
ValueType.Equals
ValueType.GetHashCode
ValueType.ToString
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public struct PixelRectangleRepresents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.
public PixelRectangle(Spreadsheet.PixelRange x, Spreadsheet.PixelRange y)
| Type | Name | Description |
|---|---|---|
| Spreadsheet.PixelRange | x | |
| Spreadsheet.PixelRange | y |
Represents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.
public PixelRectangle(double top, double left, double bottom, double right)
| Type | Name | Description |
|---|---|---|
| double | top | |
| double | left | |
| double | bottom | |
| double | right |
Returns the bottom coordinate of the rectangle.
public double Bottom { get; }
| Type | Description |
|---|---|
| double | Returns the bottom coordinate of the rectangle. |
Returns the height of the rectangle.
public double Height { get; }
| Type | Description |
|---|---|
| double | Returns the height of the rectangle. |
Returns the left coordinate of the rectangle.
public double Left { get; }
| Type | Description |
|---|---|
| double | Returns the left coordinate of the rectangle. |
Returns the right coordinate of the rectangle.
public double Right { get; }
| Type | Description |
|---|---|
| double | Returns the right coordinate of the rectangle. |
Returns the top coordinate of the rectangle.
public double Top { get; }
| Type | Description |
|---|---|
| double | Returns the top coordinate of the rectangle. |
Returns the width of the rectangle.
public double Width { get; }
| Type | Description |
|---|---|
| double | Returns the width of the rectangle. |
Returns a string representation of the rectangle in CSS style format.
public void AppendStyle(Text.StringBuilder sb)
| Type | Name | Description |
|---|---|---|
| Text.StringBuilder | sb |
Returns the intersection of this rectangle with another rectangle.
public Spreadsheet.PixelRectangle Intersection(Spreadsheet.PixelRectangle other)
| Type | Name | Description |
|---|---|---|
| Spreadsheet.PixelRectangle | other |
| Type | Description |
|---|---|
| Spreadsheet.PixelRectangle |