ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / SnapTipDisplayPart Enumeration
Example Example

In This Topic
    SnapTipDisplayPart Enumeration
    In This Topic
    Snap tip display parts.
    Syntax
    Members
    MemberDescription
    SnapTipDisplayLayer Display the layer name in a snap tip.
    SnapTipDisplayNone Don't display a snap tip.
    SnapTipDisplayType Display the snap type in a snap tip.
    Remarks
    Defines displayable parts of a snap tip. CIMSnappingProperties.SnapTipDisplayParts consists of the desired snap part bits OR-ed together.
    Example
    Snap Options
    //Set snapping options via get/set options
    var snapOptions = ArcGIS.Desktop.Mapping.Snapping.GetOptions(myMap);
    //At 2.x - snapOptions.SnapToSketchEnabled = true;
    snapOptions.IsSnapToSketchEnabled = true;
    snapOptions.XYTolerance = 100;
    //At 2.x - snapOptions.ZToleranceEnabled = true;
    snapOptions.IsZToleranceEnabled = true;
    snapOptions.ZTolerance = 0.6;
    
    //turn on snap tip display parts
    snapOptions.SnapTipDisplayParts = (int)SnapTipDisplayPart.SnapTipDisplayLayer + (int)SnapTipDisplayPart.SnapTipDisplayType;
    
    //turn off all snaptips
    //snapOptions.SnapTipDisplayParts = (int)SnapTipDisplayPart.SnapTipDisplayNone;
    
    //turn on layer display only
    //snapOptions.SnapTipDisplayParts = (int)SnapTipDisplayPart.SnapTipDisplayLayer;
    
    //At 2.x - snapOptions.GeometricFeedbackColor = ColorFactory.Instance.RedRGB;
    snapOptions.SnapTipColor = ColorFactory.Instance.RedRGB;
    
    ArcGIS.Desktop.Mapping.Snapping.SetOptions(myMap, snapOptions);
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.CIM.SnapTipDisplayPart

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also