/// <summary>
 /// Add the given layer to the snap list. This list determines which layers the current layer will be snapped to.
 /// </summary>
 /// <param name="layer">The layer that gets added to the list of layers that can be used for snapping.</param>
 public void AddLayerToSnap(IFeatureLayer layer)
 {
     if (SnapLayers == null)
     {
         InitializeSnapLayers();
     }
     SnapLayers.Add(layer);
 }
示例#2
0
 /// <summary>
 /// Add the given layer to the snap list. This list determines which layers the current layer will be snapped to.
 /// </summary>
 /// <param name="layer">The layer that gets added to the list of layers that can be used for snapping.</param>
 public void AddLayerToSnap(IFeatureLayer layer)
 {
     if (SnapLayers == null)
     {
         InitializeSnapLayers();
     }
     if (!SnapLayers.Contains(layer))
     {
         SnapLayers.Add(layer);
     }
 }