SplitContainer.AutoSize SplitContainer.AutoSize SplitContainer.AutoSize SplitContainer.AutoSize Property


取得或設定值,指出 SplitContainer 是否會自動調整大小以顯示其全部內容。Gets or sets a value indicating whether the SplitContainer is automatically resized to display its entire contents. 這個屬性與這個類別無關。This property is not relevant to this class.

 virtual property bool AutoSize { bool get(); void set(bool value); };
public override bool AutoSize { get; set; }
member this.AutoSize : bool with get, set
Public Overrides Property AutoSize As Boolean


如果 SplitContainer 會自動調整大小,則為 true,否則為 falsetrue if the SplitContainer is automatically resized; otherwise, false.


控制項的內容可能會因為許多原因而變更;包括顯示資料變更;加入子控制項;版面配置和填補變更;或系統字型、語言或解析度變更。The contents of a control may change for many reasons; including display data changes; addition of child controls; layout and padding changes; or system font, language, or resolution changes. 如果屬性設定為true,則會自動SplitContainer調整大小以包含其內容,不過,它的大小絕對不會小於其原始SizeAutoSizeIf the AutoSize property is set to true, the SplitContainer will resize automatically to encompass its contents, although it will never be resized to be smaller than its original Size. 這種作業會維護控制項的PaddingThis operation will maintain the control's Padding. 這個屬性與這個類別無關。This property is not relevant to this class.