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 to this section

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 to this section

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 to this section

Returns the bottom coordinate of the rectangle.

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

HeightLink to this section

Returns the height of the rectangle.

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

LeftLink to this section

Returns the left coordinate of the rectangle.

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

RightLink to this section

Returns the right coordinate of the rectangle.

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

TopLink to this section

Returns the top coordinate of the rectangle.

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

WidthLink to this section

Returns the width of the rectangle.

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

Methods

AppendStyleLink to this section

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 to this section

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

ToStyleLink to this section

Returns the rectangle's position and dimensions as a CSS style string.

Declaration
public string ToStyle()
Returns
Type Description
string
An error has occurred. This app may no longer respond until reloaded. Reload 🗙