SplitContainer.AutoScrollMargin SplitContainer.AutoScrollMargin SplitContainer.AutoScrollMargin SplitContainer.AutoScrollMargin Property

定義

取得或設定自動捲動邊界的大小。Gets or sets the size of the auto-scroll margin. 這個屬性與這個類別無關。This property is not relevant to this class. 這個屬性與這個類別無關。This property is not relevant to this class.

public:
 property System::Drawing::Size AutoScrollMargin { System::Drawing::Size get(); void set(System::Drawing::Size value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Size AutoScrollMargin { get; set; }
member this.AutoScrollMargin : System.Drawing.Size with get, set
Public Property AutoScrollMargin As Size

屬性值

Size 值,表示自動捲動邊界的高度和寬度 (以像素為單位)。A Size value that represents the height and width, in pixels, of the auto-scroll margin.

備註

自動滾動邊界是任何子控制項與可滾動父控制項邊緣之間的距離。The auto-scroll margin is the distance between any child controls and the edges of the scrollable parent control. AutoScrollMargin大小會加入至可滾動控制項中包含之任何子控制項的大小,以判斷是否需要捲軸。The AutoScrollMargin size is added to the size of any child controls contained in the scrollable control to determine if scroll bars are needed. AutoScrollMargin屬性會在父自動滾動控制項調整大小時,或個別子控制項進入視圖時進行評估,並用於判斷是否必須顯示捲軸。The AutoScrollMargin property is evaluated when the parent scrollable control is resized or the individual child controls are brought into view, and is used to determine if scroll bars must be displayed. 停駐的控制項會從計算中排除,以決定是否必須顯示捲軸。Docked controls are excluded from the calculations that determine if scroll bars must be displayed.

如果從子控制項邊緣到父系可滾動控制項的距離小於指派AutoScrollMargin給屬性的值AutoScroll ,且屬性設定為true,則會顯示適當的捲軸。If the distance from the edge of a child control to the parent scrollable control is less than the value assigned to the AutoScrollMargin property and the AutoScroll property is set to true, the appropriate scroll bar is displayed.

這個屬性與這個類別無關。This property is not relevant to this class.

適用於

另請參閱