C# 클래스 ScrewTurn.Wiki.SearchResultRow

Represents a search result in a format useful for screen display.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
CreateInstance ( SearchResult result ) : SearchResultRow

Creates a new instance of the T:SearchResultRow class.

SearchResultRow ( string link, string type, string title, float relevance, string formattedExcerpt ) : System

Initializes a new instance of the T:CompactSearchResult class.

비공개 메소드들

메소드 설명
BuildFormattedExcerpt ( List matches, string input ) : string

Builds the formatted excerpt for a search match.

GetExcerpt ( System.PageInfo page, WordInfoCollection matches ) : string

Gets the formatted page excerpt.

GetExcerpt ( System.PageInfo page, int messageID, WordInfoCollection matches ) : string

Gets the formatted message excerpt.

GetKeywordsForQueryString ( WordInfoCollection matches ) : string

Gets a list of keywords formatted for the query string.

메소드 상세

CreateInstance() 공개 정적인 메소드

Creates a new instance of the T:SearchResultRow class.
public static CreateInstance ( SearchResult result ) : SearchResultRow
result ScrewTurn.Wiki.SearchEngine.SearchResult The result to use.
리턴 SearchResultRow

SearchResultRow() 공개 메소드

Initializes a new instance of the T:CompactSearchResult class.
public SearchResultRow ( string link, string type, string title, float relevance, string formattedExcerpt ) : System
link string The link.
type string The result type.
title string The title.
relevance float The relevance (%).
formattedExcerpt string The formatted page excerpt.
리턴 System