-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathOCRText.cs
42 lines (40 loc) · 953 Bytes
/
OCRText.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
/*
* Created by SharpDevelop.
* User: nk1449
* Date: 2018/12/19
* Time: 16:55
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace UyghurOCR
{
/// <summary>
/// Description of OCRText.
/// </summary>
public partial class OCRText : Form
{
public OCRText()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
textBox1.Text="";
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
public void SetText(string ocrtext){
this.textBox1.AppendText(ocrtext);
//this.textBox1.SelectionStart = this.textBox1.Text.Length;
//this.textBox1.SelectionLength = 0;
}
void Button1Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(this.textBox1.Text);
}
}
}