Windows Dev Center

SearchSuggestionCollection.AppendSearchSeparator | appendSearchSeparator method

Appends a text label that is used to separate groups of suggestions in the search pane.

Syntax


searchSuggestionCollection.appendSearchSeparator(label);

Parameters

label

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The text to use as a separator. This text should be descriptive of any suggestions that are appended after it.

Remarks

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and decreases the number of suggestions that you can display. Learn more about displaying suggestions in Guidelines and checklist for search.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.winmd

See also

Search contract sample
Guidelines and checklist for search
Reference
SearchSuggestionCollection class
SearchPane.SuggestionsRequested event
SearchPaneSuggestionsRequestedEventArgs class
SearchPaneSuggestionsRequestedEventArgs.Request property
SearchPaneSuggestionsRequest class
SearchPaneSuggestionsRequest.SearchSuggestionCollection property

 

 

Show:
© 2015 Microsoft