C# Class NAAddTraversalResultToMap.AddTraversalResultsToMap

Inheritance: ESRI.ArcGIS.Desktop.AddIns.Button
Afficher le fichier Open project: Esri/arcobjects-sdk-community-samples

Méthodes publiques

Méthode Description
AddTraversalResultsToMap ( ) : ESRI.ArcGIS.Carto

Méthodes protégées

Méthode Description
OnClick ( ) : void

OnClick is the main function for the add-in. When the button is clicked in ArcMap, this code will execute. Note that if you re-solve the analysis layer associated with the traversal result, any open attribute tables associated with the traversal result will disconnect and need to be reopened.

OnUpdate ( ) : void

Private Methods

Méthode Description
AddNATraversalResultLayersToGroup ( IGroupLayer groupLayer, INAResult result ) : void

AddNATraversalResultLayersToGroup will take the traversal results from an INAResult and add them to the map as a group layer

GetLayerIndex ( ILayer layer ) : int
GetRenderer ( esriNetworkElementType networkElementType ) : IFeatureRenderer

GetRenderer will return a feature renderer with symbology appropriate to the specified element type

GetTraversalResultLayer ( esriNetworkElementType elementType, INATraversalResultQuery2 naTraversalResultQuery ) : IFeatureLayer

GetTraversalResultLayer will generate a layer out of the traversal result for the specified element type

Method Details

AddTraversalResultsToMap() public méthode

public AddTraversalResultsToMap ( ) : ESRI.ArcGIS.Carto
Résultat ESRI.ArcGIS.Carto

OnClick() protected méthode

OnClick is the main function for the add-in. When the button is clicked in ArcMap, this code will execute. Note that if you re-solve the analysis layer associated with the traversal result, any open attribute tables associated with the traversal result will disconnect and need to be reopened.
protected OnClick ( ) : void
Résultat void

OnUpdate() protected méthode

protected OnUpdate ( ) : void
Résultat void