ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ISymbolFactory Interface / ConstructWaterFill Method / ConstructWaterFill(CIMColor,WaterbodySize,WaveStrength) Method
ArcGIS.Core.CIM.CIMColor
ArcGIS.Core.CIM.WaterbodySize
ArcGIS.Core.CIM.WaveStrength
Example

In This Topic
    ConstructWaterFill(CIMColor,WaterbodySize,WaveStrength) Method
    In This Topic
    Constructs a water fill of specific color, waterbody size and wave strength.
    Syntax
    Example
    Animation water
    /// <summary>
    /// Constructs a water fill of specific color, waterbody size and wave strength. This fill can be used on polygon feature classes in a Scene view only.
    /// ![ConstructWaterFill](https://ArcGIS.github.io/arcgis-pro-sdk/images/Symbology/waterAnimation.gif)
    /// </summary>
    {
      //Note: Run withing QueuedTask
    
      CIMStroke outline = SymbolFactory.Instance.ConstructStroke(CIMColor.CreateRGBColor(49, 49, 49, 50.0), 2.0, SimpleLineStyle.Solid);
      var waterFill = SymbolFactory.Instance.ConstructWaterFill(CIMColor.CreateRGBColor(3, 223, 252), WaterbodySize.Large, WaveStrength.Rippled);
      List<CIMSymbolLayer> symbolLayers = new List<CIMSymbolLayer>
        {
                  outline,
                  waterFill
        };
      CIMPolygonSymbol waterFillPolygonSymbol = new CIMPolygonSymbol() { SymbolLayers = symbolLayers.ToArray() };
      //To apply the symbol to a polygon feature layer
      //var renderer = theLayer.GetRenderer() as CIMSimpleRenderer;
      //renderer.Symbol = waterFillPolygonSymbol.MakeSymbolReference();
      //theLayer.SetRenderer(renderer);
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also