RichTextBox.ScrollBars 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可以取得或設定要在控制鍵中 RichTextBox 顯示的捲軸條類型。
public:
property System::Windows::Forms::RichTextBoxScrollBars ScrollBars { System::Windows::Forms::RichTextBoxScrollBars get(); void set(System::Windows::Forms::RichTextBoxScrollBars value); };
public System.Windows.Forms.RichTextBoxScrollBars ScrollBars { get; set; }
member this.ScrollBars : System.Windows.Forms.RichTextBoxScrollBars with get, set
Public Property ScrollBars As RichTextBoxScrollBars
屬性值
這是其中一項 RichTextBoxScrollBars 價值。 預設值為 RichTextBoxScrollBars.Both。
例外狀況
列舉中未定義 RichTextBoxScrollBars 指定的值。
備註
此特性允許您向控制按鈕使用者 RichTextBox 提供水平與垂直捲動條,以啟用控制按鈕內超出物理尺寸的文字滾動。 你也可以利用這個特性移除控制項上的滾動條,以限制控制項內容的捲動。
備註
如果 是 WordWraptrue,水平滾動條不會顯示,無論屬性值 ScrollBars 多少。