System.Windows.Forms.TextBox.Paste C# (CSharp) 메소드

Paste() 공개 메소드

public Paste ( string text ) : void
text string
리턴 void
		public void Paste (string text)
		{
			m_helper.SelectedText = text;
			//document.ReplaceSelection (CaseAdjust (text), false);

			//ScrollToCaret();
			OnTextChanged(EventArgs.Empty);
		}
	

Usage Example

예제 #1
0
파일: Form1.cs 프로젝트: Gwee/csharp
        private void Button_Click(object sender, System.EventArgs e)
        {
            Button btn = (Button)sender;
            string str = btn.Text;

            switch (str)
            {
            case "Copy":
                if (TextBox1.SelectionLength > 0)
                {
                    TextBox1.Copy();
                }
                break;

            case "Cut":
                if (TextBox1.SelectionLength > 0)
                {
                    TextBox1.Cut();
                }
                break;

            case "Paste":
                TextBox1.Paste();
                break;

            case "Undo":
                TextBox1.Undo();
                break;
            }
        }
All Usage Examples Of System.Windows.Forms.TextBox::Paste