Show / Hide Table of Contents

Property RuleBehavior

RuleBehavior

Gets a value that describes how SnapRules affect the interactive snapping behavior of this SnapSourceSettings.

Declaration
public SnapRuleBehavior RuleBehavior { get; }
Property Value
Type Description
SnapRuleBehavior

Describes how SnapRules affect the interactive snapping behavior of this SnapSourceSettings.

Remarks

This value indicates how interactive snapping behavior is affected by SnapRules, which may allow, limit, or prevent snapping to this SnapSourceSettings. Rule-based snapping is configured by calling SyncSourceSettings(SnapRules, SnapSourceEnablingBehavior) - see SnapRules for more information about configuring a GeometryEditor with rule-based snapping.

If rule-based snapping is not configured (if snap sources were synchronized by calling SyncSourceSettings()), then this value will be None for all SnapSourceSettings in the SourceSettings collection.

This information can be used to provide UI feedback to end users about which SnapSourceSettings can be snapped to. For example if your app presents a list of snap sources to the end user to enable or disable, you may wish to exclude RulesPreventSnapping snap sources because they cannot actually be snapped to, regardless of the value of IsEnabled.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.7
.NET200.7
.NET Windows200.7
.NET Android200.7
.NET iOS200.7
.NET Framework200.7
UWP200.7
In This Article
Back to top Copyright © 2022 Esri.