

Public Class CIMTinContourRenderer Inherits CIMTinRenderer Implements System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
public class CIMTinContourRenderer : CIMTinRenderer, System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
{
var contourDef = new TinContourRendererDefinition();
// now customize with a symbol
contourDef.Label = "Contours";
contourDef.SymbolTemplate = contourLineSymbol.MakeSymbolReference();
contourDef.ContourInterval = 6;
contourDef.IndexLabel = "Index Contours";
contourDef.IndexSymbolTemplate = indexLineSymbol.MakeSymbolReference();
contourDef.ContourFactor = 4;
contourDef.ReferenceHeight = 7;
// Note: Needs QueuedTask to run
{
if (surfaceLayer.CanCreateRenderer(contourDef))
{
CIMTinRenderer renderer = surfaceLayer.CreateRenderer(contourDef);
if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Contours))
surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Contours);
}
}
}
System.Object
ArcGIS.Core.CIM.CIMObject
ArcGIS.Core.CIM.CIMTinRenderer
ArcGIS.Core.CIM.CIMTinContourRenderer
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)