- Linux 和 macOS:SaveToFile 和 LoadFromFile
- Windows:SaveToFile、LoadFromFile、SaveToMemory 和 LoadFromMemory
屬性
,唯讀 | 回傳 Engine 物件。 | |
,唯讀 | 提供對 layout 中分隔線及分隔線群組區塊集合的存取。 無論 Layout 中是否存在分隔區塊,此屬性均指向有效物件。若 Layout 中沒有分隔線,則 BlackSeparators 屬性為空。 | |
,唯讀 | 提供對 layout 中區塊集合的存取。此集合不包含分隔線及分隔線群組區塊。若要存取這些區塊,請使用 BlackSeparators 屬性。 無論 Layout 中是否存在任何區塊,此屬性均指向有效物件。若 Layout 中沒有區塊,則 Blocks 屬性為空。另請參閱使用唯讀物件屬性。 此集合不會包含自動分析區塊,因為此型別的區塊僅用於 Visual Components。 | |
,唯讀 | 回傳 layout 中依邏輯順序排列的區塊集合。 此集合包含與 Blocks 屬性所回傳的相同區塊,依各區塊左上角位置排序,先由左至右,再由上至下。位置相近的區塊將被視為同一邏輯群組的一部分。 | |
,唯讀 | 提供對 Visual Components 中可見區塊集合的存取。此集合可包含以下型別的區塊:文字、表格、點陣圖片、條碼、自動分析。此集合中區塊的排列順序與 Visual Components 中顯示的順序相同。 | |
, 唯讀 | 回傳 layout 的高度 (以像素為單位) ,等於對應的. | |
儲存 layout 名稱。 | ||
, read-only | Writes the text from all text and table blocks to one line. Theobject determines the order in which text from table cells is written. So the order may not coincide with the table cells order as they go in the image. Text of barcode blocks is not written. | |
,唯讀的 | 儲存 layout 中各區塊的邊界 Region。若不存在任何區塊,此屬性將回傳空的 Region。 | |
Allows you to associate any user-defined information with an object of the Layout type. | ||
, read-only | Returns the layout width in pixels. It is equal to the width ofof the corresponding. | |
方法
| 名稱 | 描述 |
|---|---|
| Clean | 從版面中移除所有類型的區塊和分隔線。 |
| CopyFrom | 使用另一個物件中對應屬性的值來初始化目前物件的屬性。 |
| LoadFromFile | 從磁碟上的檔案還原物件內容。 |
| LoadFromMemory <Note> 僅限 Windows。 </Note> | 從全域記憶體還原物件內容。 |
| SaveToArray | 將物件內容儲存為位元組陣列。 |
| SaveToFile | 將物件內容儲存到磁碟上的檔案中。 |
| SaveToMemory <Note> 僅限 Windows。 </Note> | 將物件內容儲存到全域記憶體中。 |
| SaveToStream | 將物件內容儲存到資料流中。 |
Windows
Linux 與 macOS
物件圖表
輸出參數
範例
C# 程式碼
C# 程式碼
- Linux:CustomLanguage
- Windows:CustomLanguage, RecognizedTextProcessing;以及 Demo Tools:Engine Predefined Processing Profiles
