Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.getDisplayRect

Retrieves the rectangle that represents the display area of the control.

Syntax

public Rectangle getDisplayRect()

Return Value

Returns a Rectangle object that represents the display area of the control. For the Control class, getDisplayRect and getClientRect return identical rectangles because the client area and display area are identical. You can override this method in a derived control if the client area and display area are different for that control.