Lấy tên bố cục
Contents
[
Hide
]Cách lấy tên bố cục
Vấn đề: Làm thế nào để lấy tên bố cục.
Mẹo: Để lấy tên bố cục, cần sử dụng lớp CadLayoutDictionary trong hình ảnh.
Ví dụ:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CadLayoutDictionary layouts =((CadImage)cadImage).Layouts; | |
string[] layoutNames = new string[layouts.Count]; | |
int i = 0; | |
foreach (CadLayout layout in layouts.Values) | |
{ | |
layoutNames[i++] = layout.LayoutName; | |
} |