This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPointSnapper Interface > IPointSnapper.ExcludedLayers Property (ArcObjects .NET 10.4 SDK) |
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
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();