ArcObjects Library Reference (Controls)  

IPointSnapper.ExcludedLayers Property

Returns a reference to the set of layers that will be excluded in snapping.

[Visual Basic .NET]
Public Sub ExcludedLayers ( _
    ByRef ppSet As ISet _
)
[C#]
public void ExcludedLayers (
    ref ISet ppSet
);
[C++]
HRESULT get_ExcludedLayers(
  ISet** ppSet
);
[C++]

Parameters

ppSet

  ppSet is a parameter of type ISet

Product Availability

Available with ArcGIS Engine.
[C#]

The following code snippet illustrates how to exclude a particular layer from the snapping cache.

ISet excludedLayerSet = new ESRI.ArcGIS.esriSystem.SetClass();
pointSnapper.ExcludedLayers(ref excludedLayerSet);

//add a layer to be excluded  
excludedLayerSet.Add(excludedLayer);
pointSnapper.ClearCache(); 


 

See Also

IPointSnapper Interface