public class TinNodeClassBreaksRendererDefinition : TinColorRampRendererDefinition
Public Class TinNodeClassBreaksRendererDefinition Inherits TinColorRampRendererDefinition
public class TinNodeClassBreaksRendererDefinition : TinColorRampRendererDefinition
Public Class TinNodeClassBreaksRendererDefinition Inherits TinColorRampRendererDefinition
Once you define a class breaks renderer, you can call a surface layer's CanCreateRenderer, CreateRenderer, CanSetRenderer and SetRenderer methods to create and assign a renderer to a surface layer.
// applies to TIN layers only var equalBreaksNodeRendererDef = new TinNodeClassBreaksRendererDefinition(); equalBreaksNodeRendererDef.BreakCount = 7; if (tinLayer.CanCreateRenderer(equalBreaksNodeRendererDef)) { CIMTinRenderer renderer = tinLayer.CreateRenderer(equalBreaksNodeRendererDef); if (tinLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges)) tinLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges); }
// applies to TIN layers only var defiendIntervalNodeRendererDef = new TinNodeClassBreaksRendererDefinition(); defiendIntervalNodeRendererDef.ClassificationMethod = ClassificationMethod.DefinedInterval; defiendIntervalNodeRendererDef.IntervalSize = 4; defiendIntervalNodeRendererDef.SymbolTemplate = nodeSymbol.MakeSymbolReference(); if (tinLayer.CanCreateRenderer(defiendIntervalNodeRendererDef)) { CIMTinRenderer renderer = tinLayer.CreateRenderer(defiendIntervalNodeRendererDef); if (tinLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges)) tinLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges); }
// applies to TIN layers only var stdDevNodeRendererDef = new TinNodeClassBreaksRendererDefinition(); stdDevNodeRendererDef.ClassificationMethod = ClassificationMethod.StandardDeviation; stdDevNodeRendererDef.DeviationInterval = StandardDeviationInterval.OneHalf; stdDevNodeRendererDef.ColorRamp = ColorFactory.Instance.GetColorRamp("Cyan to Purple"); if (tinLayer.CanCreateRenderer(stdDevNodeRendererDef)) { CIMTinRenderer renderer = tinLayer.CreateRenderer(stdDevNodeRendererDef); if (tinLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges)) tinLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges); }
System.Object
ArcGIS.Desktop.Mapping.LayerDrawingDefinition
ArcGIS.Desktop.Mapping.TinRendererDefinition
ArcGIS.Desktop.Mapping.TinColorRampRendererDefinition
ArcGIS.Desktop.Mapping.TinNodeClassBreaksRendererDefinition
Target Platforms: Windows 11, Windows 10