Padding.Size 屬性

定義

取得 Size 格式的邊框距離資訊。Gets the padding information in the form of a Size.

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

屬性值

Size,包含邊框距離資訊。A Size containing the padding information.

屬性

備註

Size 屬性會執行從 PaddingSystem.Drawing.Size的類型轉換。The Size property performs a type conversion from Padding to System.Drawing.Size. Horizontal 屬性會對應至 Size.Width 屬性,而 Vertical 屬性會對應至 Size.Height 屬性。The Horizontal property corresponds to the Size.Width property, and the Vertical property corresponds to the Size.Height property.

Size 很方便用於許多版面配置計算。Size is convenient for use in many layout calculations.

適用於

另請參閱