System.Windows.Forms.TextBoxBase.Paste C# (CSharp) Method

Paste() public method

public Paste ( ) : void
return void
		public void Paste ()
		{
			m_helper.TextView.Paste(this);
		}
		//TODO:

Usage Example

Example #1
0
        /// <summary>
        /// Does application-wide cut
        /// </summary>
        public static void Paste()
        {
            Control activeControl = Application.ActiveControl;

            if (activeControl == null)
            {
                return;
            }

            System.Windows.Forms.TextBoxBase active = activeControl as System.Windows.Forms.TextBoxBase;
            if (active != null)
            {
                active.Paste();
                return;
            }

            MethodInfo method = activeControl.GetType().GetMethod("Paste");

            if (method != null)
            {
                FunctionWithoutReturn getMethod = (FunctionWithoutReturn)Delegate.CreateDelegate
                                                      (typeof(FunctionWithoutReturn), activeControl, method);

                getMethod();
            }
        }