### 2021-07-14更新
------ #### ryControlsV4 V3.0.2107.1401 - *.[新增]ContextMenuStripRichText控件新增支持RichTextBox2的OnlyInputText属性。
This commit is contained in:
parent
6713415f1d
commit
7b9e064340
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19
CHANGELOG.md
19
CHANGELOG.md
|
@ -1,4 +1,21 @@
|
|||
### 2021-07-01更新
|
||||
### 2021-07-14更新
|
||||
|
||||
------
|
||||
|
||||
#### ryControlsV4 V3.0.2107.1401
|
||||
|
||||
- *.[新增]ContextMenuStripRichText控件新增支持RichTextBox2的OnlyInputText属性。
|
||||
|
||||
### 2021-07-05更新
|
||||
|
||||
------
|
||||
|
||||
#### ryControlsV4 V3.0.2107.0501
|
||||
|
||||
- *.[修复]修复Gdu窗体阴影边框为0时出错的BUG。
|
||||
|
||||
### 2021-07-01更新
|
||||
|
||||
------
|
||||
#### ryControlsV4 V3.0.2107.0101
|
||||
- *.[新增]新增Sheng.Winform.Controls部分控件。
|
||||
|
|
Binary file not shown.
|
@ -58,9 +58,22 @@ namespace ryControls.Controls
|
|||
private void Paste_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!(base.SourceControl is RichTextBox)) { return; }
|
||||
if (base.SourceControl is RichTextBox2)
|
||||
{
|
||||
var rich_txt = (RichTextBox2)base.SourceControl;
|
||||
if (rich_txt.OnlyInputText)
|
||||
{
|
||||
var text = Clipboard.GetText();
|
||||
rich_txt.SelectedText = text;
|
||||
}
|
||||
else { rich_txt.Paste(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
var rich_txt = (RichTextBox)base.SourceControl;
|
||||
rich_txt.Paste();
|
||||
}
|
||||
}
|
||||
private void Del_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!(base.SourceControl is RichTextBox)) { return; }
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.2107.0501")]
|
||||
[assembly: AssemblyFileVersion("3.0.2107.0501")]
|
||||
[assembly: AssemblyVersion("3.0.2107.1401")]
|
||||
[assembly: AssemblyFileVersion("3.0.2107.1401")]
|
Loading…
Reference in New Issue
Block a user