Control.PreferredSize Control.PreferredSize Control.PreferredSize Control.PreferredSize Property

定义

获取可以容纳控件的矩形区域的大小。Gets the size of a rectangular area into which the control can fit.

public:
 property System::Drawing::Size PreferredSize { System::Drawing::Size get(); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Size PreferredSize { get; }
member this.PreferredSize : System.Drawing.Size
Public ReadOnly Property PreferredSize As Size

属性值

包含高度和宽度的 Size(以像素为单位)。A Size containing the height and width, in pixels.

适用于