Export (0) Print
Expand All

HtmlElement.ScrollRectangle Property

Gets the dimensions of an element's scrollable region.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public Rectangle ScrollRectangle { get; }

Property Value

Type: System.Drawing.Rectangle
The size and coordinate location of the scrollable area of an element.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft