語言

TextLoader.Range 類別

定義

指定應映射到輸出欄位的輸入欄位索引範圍。

public sealed class TextLoader.Range
type TextLoader.Range = class
Public NotInheritable Class TextLoader.Range
繼承
TextLoader.Range

建構函式

名稱 Description
TextLoader.Range()

指定應映射到輸出欄位的輸入欄位索引範圍。

TextLoader.Range(Int32, Nullable<Int32>)

一個代表一組數值的範圍。 會產生向量欄位。

TextLoader.Range(Int32)

一個代表單一值的範圍。 會產生一個純量柱。

欄位

名稱 Description
AllOther

此範圍是否僅包含其他指標,未具體說明。

AutoEnd

這個範圍是否延伸到線尾,但應該是固定數量的物品。 若 Max 指定 ,則忽略欄位 AutoEnd 和 VariableEnd 。

ForceVector

強制將純量列視為長度為一的向量。

Max

欄位的最大索引,包含。 如果 null 表示應該 TextLoader 自動偵測該行的每一段,並讀取到最後。 若指定為 max,則忽略欄位 AutoEnd 和 VariableEnd 。

Min

欄位的最小索引,包含。

VariableEnd

這個範圍是否延伸到線路末端,這會因線路而異。 若 Max 指定 ,則忽略欄位 AutoEnd 和 VariableEnd 。 若 AutoEnd , true則 VariableEnd 忽略。

適用於