Beispiel #1
0
        /// <summary>
        /// Inverts the selection.
        /// </summary>
        /// <param name="featureLayer">IFeatureLayer whose selection is inverted.</param>
        public static void InvertSelection(this IFeatureLayer featureLayer)
        {
            Envelope ignoreMe;
            Envelope env = featureLayer.Extent.ToEnvelope();

            featureLayer.InvertSelection(env, env, SelectionMode.IntersectsExtent, out ignoreMe);
        }
Beispiel #2
0
 /// <summary>
 /// Inverts the selection state of members that intersect the specified region.
 /// The affected area will be returned.
 /// </summary>
 /// <param name="self">The IFeatureLayer to modify the selection for</param>
 /// <param name="tolerant">The geographic envelope in cases like cliking near points where tolerance is allowed</param>
 /// <param name="strict">The geographic region when working with absolutes, without a tolerance</param>
 /// <param name="affectedArea">The affected area to modify</param>
 /// <returns>Boolean, true if the selection state was modified by this action</returns>
 public static bool InvertSelection(this IFeatureLayer self, Envelope tolerant, Envelope strict, out Envelope affectedArea)
 {
     return(self.InvertSelection(tolerant, strict, SelectionMode.Intersects, out affectedArea));
 }