SearchSettingsDataSource.SearchTrimsWhitespaces Property
Gets or sets the flag indicating whether the Visual Studio 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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Property SearchTrimsWhitespaces As Boolean
public bool SearchTrimsWhitespaces { get; set; }
Property Value
Type: System.Boolean
Returns the flag indicating whether to trim whitespace before using the search string.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.