Click or drag to resize

DXFReaderNETControlShowLayers Method

Shows the default layers dialog for the control.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public void ShowLayers()
Remarks
Shows a dialog to modify drawing's layers properties.
Examples
It is possible to localize the dialog strings using some internal properties as shown in the samples and picture below. The LayersDialogButtonHeaderTexts array contains the 10 column titles of the layers grid, in this order: Status, Name, On, Freeze, Lock, Plot, Color, Linetype, Lineweight, Transparency.
[C#]
dxfReaderNETControl1.LayersDialogText = "图层";
dxfReaderNETControl1.LayersDialogButtoOkText = "好";
dxfReaderNETControl1.LayersDialogButtonCancelText = "取消";
dxfReaderNETControl1.LayersDialogButtonNewText = "新建";
dxfReaderNETControl1.LayersDialogButtonHeaderTexts = new string[10] { "状态", "名称", "开", "冻结", "锁定", "打印", "颜色", "线型", "线宽", "透明度" };

dxfReaderNETControl1.ShowLayers();
[Visual Basic]
With DxfReaderNETControl1
   .LayersDialogText = "图层"
   .LayersDialogButtoOkText = "好"
   .LayersDialogButtonCancelText = "取消"
   .LayersDialogButtonNewText = "新建"
   .LayersDialogButtonHeaderTexts = New String() {"状态", "名称", "开", "冻结", "锁定", "打印", "颜色", "线型", "线宽", "透明度"}

   .ShowLayers()
End With
See Also