關於RichTextbox的一些屬性

來源:互聯網
上載者:User
ShowSelectionMargin

這個屬性設定為true後,就會在richtextbox文本最左側多空出1個字元的寬度,在此空白處單擊滑鼠左鍵就會選中當前正行文本,雙擊(或者連續單擊3次?)就會做全選的操作

 

You can use this property to enable the user to easily select lines of text in the RichTextBox. The selection margin is added to the left side of the RichTextBox. This margin makes it easier for the user to select text starting on the left side of the control. The user can click in the selection margin to select a single line of text or double-click to select the entire paragraph that the line double-clicked is contained within.

Note

If the ShowSelectionMargin property is set to true, setting the {
function anonymous()
{
function onclick()
{
Track('ctl00_MainContent_ctl21_ctl00_contenthere|ctl00_MainContent_ctl21_ctl00_ctl00',this);
}
}
}" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.scrollbars(VS.80).aspx">ScrollBars property to RichTextBoxScrollBars.Horizontal, RichTextBoxScrollBars.Vertical, or RichTextBoxScrollBars.Both will not cause scroll bars to be displayed. In order to display scroll bars while the ShowSelectionMargin property is set to true, set the ScrollBars property to RichTextBoxScrollBars.ForcedHorizontal, RichTextBoxScrollBars.ForcedVertical, or RichTextBoxScrollBars.ForcedBoth.

 

WordWrap

當文本長度超過顯示的寬度時是否自動換行,如果設為false,當長度過長時就會出現水平捲軸

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.