ACAT.Lib.Core.Utility.Windows.GetSelectedText C# (CSharp) Метод

GetSelectedText() публичный статический Метод

Returns selected text in the text box
public static GetSelectedText ( TextBoxBase control ) : String
control System.Windows.Forms.TextBoxBase text box
Результат String
        public static String GetSelectedText(TextBoxBase control)
        {
            if (control.InvokeRequired)
            {
                return (String)control.Invoke(new getSelectedText(GetSelectedText), control);
            }

            return control.SelectedText;
        }