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
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 |