DataGridView.DisplayRectangle 属性

定义

获取表示控件的显示区域的矩形。Gets the rectangle that represents the display area of the control.

public:
 virtual property System::Drawing::Rectangle DisplayRectangle { System::Drawing::Rectangle get(); };
public override System.Drawing.Rectangle DisplayRectangle { get; }
member this.DisplayRectangle : System.Drawing.Rectangle
Public Overrides ReadOnly Property DisplayRectangle As Rectangle

属性值

一个 Rectangle,它表示控件的显示区域。A Rectangle that represents the display area of the control.

注解

@No__t-0 属性返回控件的显示区域的客户端矩形,不包括显示的任何滚动条占用的区域。The DisplayRectangle property returns the client rectangle of the display area of the control, not including the area occupied by any scroll bars that are showing.

继承者说明

在派生类中重写 DisplayRectangle 属性时,请使用基类的 DisplayRectangle 属性来扩展基实现。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.

适用于

另请参阅