Redigera

Dela via


Control.DisplayRectangle Property

Definition

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

public:
 virtual property System::Drawing::Rectangle DisplayRectangle { System::Drawing::Rectangle get(); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Rectangle DisplayRectangle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DisplayRectangle : System.Drawing.Rectangle
Public Overridable ReadOnly Property DisplayRectangle As Rectangle

Property Value

A Rectangle that represents the display area of the control.

Attributes

Remarks

The DisplayRectangle property returns the client rectangle of the display area of the control. For the base control class, this is equal to the client rectangle. However, inheriting controls might want to change this if their client area differs from their display area. The display rectangle is the smallest Rectangle that encloses a control and is used to lay out controls.

Notes to Inheritors

When overriding the DisplayRectangle property in a derived class, use the base class's DisplayRectangle property to extend the base implementation. Alternatively, you must provide all the implementation.

Applies to

See also