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.

適用於