Show / Hide Table of Contents

Method GetRuleBehavior

GetRuleBehavior(ISnapSource)

Returns the applicable SnapRuleBehavior for the given ISnapSource.

Declaration
public SnapRuleBehavior GetRuleBehavior(ISnapSource source)
Parameters
Type Name Description
ISnapSource source

The ISnapSource to retrieve snap rules for.

Returns
Type Description
SnapRuleBehavior

The applicable SnapRules for the given ISnapSource.

Remarks

This method can be used to check SnapRuleBehavior of a valid ISnapSource directly, without needing to synchronize the SourceSettings collection on SnapSettings and get RuleBehavior. This will be None if the ISnapSource does not have rules specified in the SnapRules. Its features or graphics can all be snapped to as it would with no SnapRules. This will be RulesLimitSnapping if the ISnapSource has rules specified in a SnapRules which allow some features to be a candidate for snapping if it matches one of the rules specified. This will be RulesPreventSnapping if the ISnapSource has rules specified in a SnapRules which block all features in the ISnapSource being a candidate for snapping.

See Also
RuleBehavior

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.