PixelRectangle Struct

Represents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.

Inherited Members

ValueType.Equals

ValueType.GetHashCode

ValueType.ToString

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public struct PixelRectangle

Constructors

PixelRectanglelink

Represents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.

Declaration
public PixelRectangle(Spreadsheet.PixelRange x, Spreadsheet.PixelRange y)
Parameters

PixelRectanglelink

Represents a rectangle in pixel coordinates, defined by two pixel ranges: one for the x-axis and one for the y-axis.

Declaration
public PixelRectangle(double top, double left, double bottom, double right)
Parameters
Type Name Description
double top
double left
double bottom
double right

Properties

Bottomlink

Returns the bottom coordinate of the rectangle.

Declaration
public double Bottom { get; }
Property Value
Type Description
doubleReturns the bottom coordinate of the rectangle.

Heightlink

Returns the height of the rectangle.

Declaration
public double Height { get; }
Property Value
Type Description
doubleReturns the height of the rectangle.

Leftlink

Returns the left coordinate of the rectangle.

Declaration
public double Left { get; }
Property Value
Type Description
doubleReturns the left coordinate of the rectangle.

Rightlink

Returns the right coordinate of the rectangle.

Declaration
public double Right { get; }
Property Value
Type Description
doubleReturns the right coordinate of the rectangle.

Toplink

Returns the top coordinate of the rectangle.

Declaration
public double Top { get; }
Property Value
Type Description
doubleReturns the top coordinate of the rectangle.

Widthlink

Returns the width of the rectangle.

Declaration
public double Width { get; }
Property Value
Type Description
doubleReturns the width of the rectangle.

Methods

AppendStylelink

Returns a string representation of the rectangle in CSS style format.

Declaration
public void AppendStyle(Text.StringBuilder sb)
Parameters
Type Name Description
Text.StringBuilder sb

Intersectionlink

Returns the intersection of this rectangle with another rectangle.

Declaration
public Spreadsheet.PixelRectangle Intersection(Spreadsheet.PixelRectangle other)
Parameters
Type Name Description
Spreadsheet.PixelRectangle other
Returns
An error has occurred. This app may no longer respond until reloaded. Reload 🗙