NShape Reference
LayerPresenter Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Controllers >

NShape Reference
LayerPresenter Class

Previous pageReturn to chapter overviewNext page

Provides methods and properties for connecting an ILayerView user interface widget with a LayerController.

Syntax

public class LayerPresenter : Component

Description

Public Properties

Name

Description

DiagramPresenter

Provides access to an IDiagramPresenter displaying the diagram that contains the layers managed with this LayerPresenter's LayerController.

LayerController

Provides access to al LayerController managing the presented layers.

LayerView

Provides access to a user interface widget.

ProductVersion

The version of the component.

Project

Provides access to the LayerController's project.

SelectedLayers

Provides access to a list of layers selected in the user interface.

Events

Name

Description

LayerSelectionChanged

Occurs when the selected layer(s) changes.

Protected Methods

Name

Description

ActivateSelectedLayers

Set the selected layers as the IDiagramPresenter's active layers.

BeginRenameSelectedLayer

Indicates that the selected layer is being renamed.

DeactivateSelectedLayers

Removes the selected layers from the IDiagramPresenter's active layers.

GetMenuItemDefs

Returns a list of MenuItemDefs.

HideSelectedLayers

Notifies the IDiagramPresenter that shapes assigned to the selected layers should be invisible.

OnSelectedLayersChanged

Raises the LayerSelectionChanged event.

ShowSelectedLayers

Notifies the IDiagramPresenter that shapes assigned to the selected layers should be visible.

Requirements

Namespace: Dataweb.NShape.Controllers

Assembly: Dataweb.NShape