关于RichTextbox的一些属性

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.

NoteNote

If the ShowSelectionMargin property is set to true, setting the 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,当长度过长时就会出现水平滚动条

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值