图层管理器类。
命名空间:
SuperMap.Desktop.UI程序集: SuperMap.Desktop.UI.Controls (in SuperMap.Desktop.UI.Controls)
版本: dll
语法
C# |
---|
[ToolboxBitmapAttribute(typeof(LayersControlManager), "Resources.Toolbox.LayersControlManager.png")] public class LayersControlManager : UIUserControl |
备注
需要添加程序集SuperMap.UI.Controls.dll的引用。
示例
以下代码示范如何获取图层管理器控件,并经行事件的注册。
CopyC#
override public void Run() { //获取浮动窗口。 IDockBar dockBar = Application.ActiveApplication.MainForm.DockBarManager[typeof(LayersControlManager)]; //获取浮动窗口内的控件并注册事件。 LayersControlManager layersControlManager = dockBar.Control as LayersControlManager; layersControlManager.LayersTree.NodeMouseClick += new TreeNodeMouseClickEventHandler(LayersTree_NodeMouseClick); }
继承层次
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.Control
System.Windows.Forms..::.ScrollableControl
System.Windows.Forms..::.ContainerControl
System.Windows.Forms..::.UserControl
SuperMap.Desktop.UI..::.UIUserControl
SuperMap.Desktop.UI..::.LayersControlManager
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.Control
System.Windows.Forms..::.ScrollableControl
System.Windows.Forms..::.ContainerControl
System.Windows.Forms..::.UserControl
SuperMap.Desktop.UI..::.UIUserControl
SuperMap.Desktop.UI..::.LayersControlManager