C# Класс TextHelper.Highlighter

Показать файл Открыть проект

Открытые методы

Метод Описание
Highlight ( this text, IList phrases, string highlighter ) : string

Highlight(this string, string, string)

Highlight ( this text, string phrase, string highlighter ) : string

Highlights one or more phrases everywhere in text by inserting it into a highlighter string.

Описание методов

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

Highlight(this string, string, string)
public static Highlight ( this text, IList phrases, string highlighter ) : string
text this
phrases IList The list of phrases to highlight
highlighter string
Результат string

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

Highlights one or more phrases everywhere in text by inserting it into a highlighter string.
public static Highlight ( this text, string phrase, string highlighter ) : string
text this
phrase string The phrase to highlight
highlighter string A string formatter where {0} will be replaced by the phrase (defaults to <strong class="highlighted">{0}</strong>)
Результат string