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

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

Returns the text value of the control. This is just a helper function that takes care of cross-thread invokations that would result in .NET exceptions.
public static GetText ( Control control ) : String
control System.Windows.Forms.Control
Результат String
        public static String GetText(Control control)
        {
            if (control.InvokeRequired)
            {
                return (String)control.Invoke(new getText(GetText), control);
            }

            return control.Text;
        }

Same methods

Windows::GetText ( IntPtr hWnd ) : string

Usage Example

Пример #1
0
 /// <summary>
 /// The search filter changed.  Reload the file list
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void SearchFilter_TextChanged(object sender, EventArgs e)
 {
     _pageNumber     = 0;
     _pageStartIndex = 0;
     _fileList       = filterFiles(_allFilesList, _includeFileExtensions, _excludeFileExtensions, Windows.GetText(SearchFilter));
     refreshFileList();
 }
All Usage Examples Of ACAT.Lib.Core.Utility.Windows::GetText