ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / ToolbarPosition Enumeration
Example Example

In This Topic
    ToolbarPosition Enumeration
    In This Topic
    Defines the position of the editing toolbar.
    Syntax
    Members
    MemberDescription
    Bottom Bottom.
    Left Left.
    Right Rights.
    Example
    Get/Set Editing Options
    //toggle, switch option values
    var options = ApplicationOptions.EditingOptions;
    
    options.EnforceAttributeValidation = !options.EnforceAttributeValidation;
    options.WarnOnSubtypeChange = !options.WarnOnSubtypeChange;
    options.InitializeDefaultValuesOnSubtypeChange = !options.InitializeDefaultValuesOnSubtypeChange;
    options.UncommitedAttributeEdits = (options.UncommitedAttributeEdits == 
      UncommitedEditMode.AlwaysPrompt) ? UncommitedEditMode.Apply : UncommitedEditMode.AlwaysPrompt;
    
    options.StretchGeometry = !options.StretchGeometry;
    options.StretchTopology = !options.StretchTopology;
    options.UncommitedGeometryEdits = (options.UncommitedGeometryEdits == 
      UncommitedEditMode.AlwaysPrompt) ? UncommitedEditMode.Apply : UncommitedEditMode.AlwaysPrompt;
    
    options.ActivateMoveAfterPaste = !options.ActivateMoveAfterPaste;
    options.ShowFeatureSketchSymbology = !options.ShowFeatureSketchSymbology;
    options.FinishSketchOnDoubleClick = !options.FinishSketchOnDoubleClick;
    options.AllowVertexEditingWhileSketching = !options.AllowVertexEditingWhileSketching;
    options.ShowDeleteDialog = !options.ShowDeleteDialog;
    options.EnableStereoEscape = !options.EnableStereoEscape;
    options.DragSketch = !options.DragSketch;
    options.ShowDynamicConstraints = !options.ShowDynamicConstraints;
    options.IsDeflectionDefaultDirectionConstraint = 
      !options.IsDeflectionDefaultDirectionConstraint;
    options.IsDirectionDefaultInputConstraint = !options.IsDirectionDefaultInputConstraint;
    options.ShowEditingToolbar = !options.ShowEditingToolbar;
    options.ToolbarPosition = (options.ToolbarPosition == ToolbarPosition.Bottom) ? 
              ToolbarPosition.Right : ToolbarPosition.Bottom;
    options.ToolbarSize = (options.ToolbarSize == ToolbarSize.Medium) ? 
              ToolbarSize.Small : ToolbarSize.Medium;
    options.MagnifyToolbar = !options.MagnifyToolbar;
    
    options.EnableEditingFromEditTab = !options.EnableEditingFromEditTab;
    options.AutomaticallySaveEdits = !options.AutomaticallySaveEdits;
    options.AutoSaveByTime = !options.AutoSaveByTime;
    options.SaveEditsInterval = (options.AutomaticallySaveEdits) ? 20 : 10;
    options.SaveEditsOperations = (options.AutomaticallySaveEdits) ? 60 : 30;
    options.SaveEditsOnProjectSave = !options.SaveEditsOnProjectSave;
    options.ShowSaveEditsDialog = !options.ShowSaveEditsDialog;
    options.ShowDiscardEditsDialog = !options.ShowDiscardEditsDialog;
    options.DeactivateToolOnSaveOrDiscard = !options.DeactivateToolOnSaveOrDiscard;
    options.NewLayersEditable = !options.NewLayersEditable;
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Core.ToolbarPosition

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also