C# 클래스 TextHelper.Highlighter

파일 보기 프로젝트 열기: tylermercier/TextHelper

공개 메소드들

메소드 설명
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