SplitContainer.IsSplitterFixed 屬性

定義

取得或設定值,指出分隔器是否為固定或是可移動。Gets or sets a value indicating whether the splitter is fixed or movable.

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

屬性值

如果分隔器為固定,則為 true,否則為 falsetrue if the splitter is fixed; otherwise, false. 預設為 falseThe default is false.

備註

使用 IsSplitterFixed 屬性來啟用或停用分隔器移動。Use the IsSplitterFixed property to enable or disable splitter movement. 例如,您可以透過程式設計的方式,在重新整理顯示時,將 IsSplitterFixed 設定為 true; 當其他控制項有焦點時,或當事件發生時,根據 SplitContainer 所分割的顯示區域必須保持不變,並將 IsSplitterFixed 設定為 false 這些情況不適用的時機。For example, you might programmatically set IsSplitterFixed to true when refreshing the display, when some other control has the focus, or when an event is occurring for which the display areas divided by the SplitContainer must remain constant, and set IsSplitterFixed to false when those circumstances do not apply.

適用於