Public Overloads Function Equals( _ ByVal other As SelectionSet _ ) As Boolean
public bool Equals( SelectionSet other )
Parameters
- other
- The SelectionSet used in the comparison.
Return Value
True if the SelectionSet is equivalent.
Public Overloads Function Equals( _ ByVal other As SelectionSet _ ) As Boolean
public bool Equals( SelectionSet other )
{
// get map selection
var mapSelSet = MapView.Active.Map.GetSelection();
// create a selectionSet
var selDict = new Dictionary<MapMember, List<long>>();
selDict.Add(featureLayer, new List<long> { 1506, 2696, 2246, 1647, 948 });
var layerSelSet = ArcGIS.Desktop.Mapping.SelectionSet.FromDictionary(selDict);
// test for equality - use Equals method
var isEquals = mapSelSet.Equals(layerSelSet);
// test for equality - use operators
var equals = mapSelSet == layerSelSet;
var notEquals = mapSelSet != layerSelSet;
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)