Compartilhar via


SearchSettingsDataSource.SearchTrimsWhitespaces Property

Determines whether the common search control trims whitespace from the beginning and end of the search string before starting a search or adding the item to the most-recently-used (MRU) list. Default is true; whitespace is trimmed from the string before it is used.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Property SearchTrimsWhitespaces As Boolean
public bool SearchTrimsWhitespaces { get; set; }
public:
property bool SearchTrimsWhitespaces {
    bool get ();
    void set (bool value);
}
member SearchTrimsWhitespaces : bool with get, set
function get SearchTrimsWhitespaces () : boolean 
function set SearchTrimsWhitespaces (value : boolean)

Property Value

Type: Boolean
true if whitespace should be trimmed before using the search string.

.NET Framework Security

See Also

Reference

SearchSettingsDataSource Class

Microsoft.VisualStudio.PlatformUI Namespace