ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / LayoutOptions Class / SetGuideColor Method
The new guide color.
Example

In This Topic
    SetGuideColor Method
    In This Topic
    Sets the layout guide color. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub SetGuideColor( _
       ByVal color As CIMColor _
    ) 
    public void SetGuideColor( 
       CIMColor color
    )

    Parameters

    color
    The new guide color.
    Example
    Set LayoutOptions
    {
      //keep graphic element insert tool active
      ApplicationOptions.LayoutOptions.KeepLastToolActive = true;
      //no warning when deleting a map frame results in other elements being deleted
      ApplicationOptions.LayoutOptions.WarnAboutAssociatedSurrounds = false;
      //path to .pagx files used as templates
      ApplicationOptions.LayoutOptions.LayoutTemplatePath = @"D:\data\layout_templates";
    
      var guideColor = ApplicationOptions.LayoutOptions.GetGuideColor();
      // set guide color
      //Note: Must be on QueuedTask.Run
      ApplicationOptions.LayoutOptions.SetGuideColor(ColorFactory.Instance.RedRGB);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.4 or higher.
    See Also