* UIRichTextBox:增加WordWrap属性

This commit is contained in:
Sunny 2021-06-25 10:36:12 +08:00
parent 7f0b93c40a
commit 66fd739fa2
6 changed files with 8 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -46,6 +46,8 @@ namespace Sunny.UI
edit.ScrollBars = RichTextBoxScrollBars.Vertical;
}
public RichTextBox RichTextBox => edit;
public override Color BackColor { get => edit.BackColor; set { edit.BackColor = base.BackColor = value; } }
protected override void OnContextMenuStripChanged(EventArgs e)
@ -666,6 +668,12 @@ namespace Sunny.UI
set => edit.ZoomFactor = value;
}
public bool WordWrap
{
get => edit.WordWrap;
set => edit.WordWrap = value;
}
public bool CanPaste(DataFormats.Format clipFormat)
{
return edit.CanPaste(clipFormat);