获取布局名称
Contents
[
Hide
]如何获取布局名称
问题: 如何获取布局名称。
提示: 要获取布局名称,需要在图像中使用 CadLayoutDictionary 类。
示例:
This file contains hidden or 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; | |
} |