レイアウト名を取得する
Contents
[
Hide
]レイアウト名を取得する方法
問題: レイアウト名を取得する方法。
ヒント: レイアウト名を取得するには、画像の CadLayoutDictionary クラスを使用する必要があります。
例:
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; | |
} |