forked from AnyListen/tianruoocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RichTextBoxEx.cs
51 lines (42 loc) · 928 Bytes
/
RichTextBoxEx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using TrOCR.Helper;
namespace TrOCR
{
public class RichTextBoxEx : HelpRepaint.AdvRichTextBox
{
protected override void Dispose(bool disposing)
{
if (disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
components = new Container();
}
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string path);
[Bindable(true)]
[RefreshProperties(RefreshProperties.All)]
[SettingsBindable(true)]
[DefaultValue(false)]
[Category("Appearance")]
public string Rtf2
{
get
{
return Rtf;
}
set
{
Rtf = value;
}
}
private IContainer components;
private static IntPtr moduleHandle;
}
}