System.Windows.Forms.ScrollableControl.DisplayRectangle Property

Gets the rectangle that represents the virtual display area of the control.

Syntax

public override System.Drawing.Rectangle DisplayRectangle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the ScrollableControl.AutoScroll property is set to true, the ScrollableControl.DisplayRectangle property is the virtual size and position of the System.Windows.Forms.ScrollableControl control. For example, if the width and height of the System.Windows.Forms.ScrollableControl are both 100 pixels and the control contains controls that extend beyond its boundaries, ScrollableControl.DisplayRectangle represents the size the System.Windows.Forms.ScrollableControl needs to be to include the contained controls. Similarly, the System.Drawing.Rectangle.X and System.Drawing.Rectangle.Y properties of ScrollableControl.DisplayRectangle are relevant to the scroll position of the System.Windows.Forms.ScrollableControl.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0