Leadtools.Documents名前空間 > DocumentPageTextクラス :TextMapプロパティ |
public IList<int> TextMap {get;}
'Declaration
Public ReadOnly Property TextMap As IList(Of Integer)
'Usage
Dim instance As DocumentPageText Dim value As IList(Of Integer) value = instance.TextMap
public List<Integer> getTextMap()
public: property IList<int>^ TextMap { IList<int>^ get(); }
BuildTextWithMapが呼び出されるとき、TextMapはこのオブジェクトによって値を入力されます。それは、stringテキストで各々の文字の文字に、インデックスを格納します。TextMapには以下のように11のエントリがある間、同様にBuildWordsへのこの作品はサンプルもしもHelloWorld
、TextMap、テキストでstring「Hello World」を格納します:
0 1 2 3 4 -1 5 6 7 8 9
H e l l o W o r l d
この例では、文字のlengthを通してのTextMap封じ込め11エントリ偶数は、10です。追加のエントリは、BuildTextWithMapによって挿入される空白文字のためです。それが文字リストの一部でないため、この文字は-1のエントリ値を持っています。