Class OdfTextMatch
Describes one task-oriented text search match. 描述一筆任務導向文字搜尋結果。
public sealed class OdfTextMatch
- Inheritance
-
OdfTextMatch
- Inherited Members
Constructors
OdfTextMatch(int, int, string)
Creates a match with only a document-relative offset (no stable paragraph handle). 建立僅具文件相對 offset(無穩定段落 handle)的符合項目。
public OdfTextMatch(int index, int length, string value)
Parameters
indexintThe zero-based text index. / 從零開始的文字索引。
lengthintThe matched text length. / 符合文字的長度。
valuestringThe matched text. / 符合的文字。
Properties
Index
Gets the zero-based text index. 取得從零開始的文字索引。
public int Index { get; }
Property Value
Length
Gets the matched text length. 取得符合文字的長度。
public int Length { get; }
Property Value
Paragraph
Gets the paragraph containing this match, or null when no paragraph handle is available. 取得包含此符合項目的段落;若沒有可用的段落控制代碼,則為 null。
public OdfParagraph? Paragraph { get; }
Property Value
ParagraphOffset
Gets the zero-based offset of this match within the paragraph's concatenated text. 取得此符合項目在段落串接文字中從零開始的位移。
public int ParagraphOffset { get; }
Property Value
Value
Gets the matched text. 取得符合的文字。
public string Value { get; }