Table of Contents

Class DOMRectList

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The DOMRectList interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as GetClientRects(). It provides access to each rectangle in the list via its index, along with a length property that indicates the total number of rectangles in the list.

[Value("DOMRectList")]
public class DOMRectList
Inheritance
DOMRectList
Inherited Members

Remarks

NOTE

DOMRectList exists for compatibility with legacy Web content and is not recommended to be used when creating new APIs.

-DOMRect
-DOMRectReadOnly

See also on MDN

Constructors

DOMRectList()

public DOMRectList()

Properties

Length

The read-only length property of the DOMRectList interface returns the number of DOMRect objects in the list.

[Value("length")]
public ulong Length { get; }

Property Value

ulong

A positive integer representing the count of DOMRect objects in the DOMRectList. If there are no rectangles in the list, length is 0.

Remarks