工作空间管理器类,继承 SuperMap.UI.WorkspaceControl。

命名空间:  SuperMap.Desktop.UI
程序集:  SuperMap.Desktop.UI.Controls (in SuperMap.Desktop.UI.Controls)
版本: dll

语法

C#
[ToolboxBitmapAttribute(typeof(DesktopWorkspaceControl), "Resources.Toolbox.WorkspaceControlManager.png")]
public class DesktopWorkspaceControl : WorkspaceControl

备注

需要添加程序集SuperMap.UI.Controls.dll的引用。

示例

以下代码示范如何获取工作空间管理器控件,并进行树事件的注册。

CopyC#
override public void Run()
{
   //获取浮动窗口。
   IDockBar dockBar = Application.ActiveApplication.MainForm.DockBarManager[typeof(WorkspaceControlManager)];

   //获取浮动窗口内的控件并注册事件。
   WorkspaceControlManager workspaceControlManager = dockBar.Control as WorkspaceControlManager;
   workspaceControlManager.WorkspaceTree.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(WorkspaceTree_NodeMouseDoubleClick);
}

继承层次

System..::.Object
  System..::.MarshalByRefObject
    System.ComponentModel..::.Component
      System.Windows.Forms..::.Control
        System.Windows.Forms..::.ScrollableControl
          System.Windows.Forms..::.ContainerControl
            System.Windows.Forms..::.UserControl
              SuperMap.UI..::.WorkspaceControl
                SuperMap.Desktop.UI..::.DesktopWorkspaceControl

请参见