Lấy tên bố cục

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ụ:

CadLayoutDictionary layouts =((CadImage)cadImage).Layouts;
string[] layoutNames = new string[layouts.Count];
int i = 0;
foreach (CadLayout layout in layouts.Values)
{
layoutNames[i++] = layout.LayoutName;
}