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
Target | Versions |
---|---|
.NET Standard 2.0 | 200.7 |
.NET | 200.7 |
.NET Windows | 200.7 |
.NET Android | 200.7 |
.NET iOS | 200.7 |
.NET Framework | 200.7 |
UWP | 200.7 |