HtmlElement.ScrollRectangle Property

Definition

Gets the dimensions of an element's scrollable region.

C#
public System.Drawing.Rectangle ScrollRectangle { get; }

Property Value

The size and coordinate location of the scrollable area of an element.

Remarks

An element will have a scrollable region if its content exceeds the size of its dimensions, unless the overflow style on the element forbids rendering scrollbars.

You cannot modify the size of the scroll area directly, but you can modify the distance between the edges of the scroll area and the edges of the element. Use the ScrollLeft and ScrollTop properties to achieve this.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also