I want to create a GraduatedColorsRendererDefinition using the 'Manual' classification method (in order to set breaks at unequal intervals (for example at 0.4, 0.7, 0.9, 1). Where can I set the required break values? I can't see the appropriate member on GraduatedColorsRendererDefinition. Other classification methods (defined interval, for example) work fine.
<SPAN class="comment token">// Apply renderer and add output to map</SPAN>
Uri uri <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Uri</SPAN><SPAN class="punctuation token">(</SPAN>OutputPath<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">string</SPAN> colorBrewerSchemesName <SPAN class="operator token">=</SPAN> <SPAN class="string token">"ArcGIS Colors"</SPAN><SPAN class="punctuation token">;</SPAN>
StyleProjectItem style <SPAN class="operator token">=</SPAN> Project<SPAN class="punctuation token">.</SPAN>Current<SPAN class="punctuation token">.</SPAN>GetItems<SPAN class="operator token"><</SPAN>StyleProjectItem<SPAN class="operator token">></SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">First</SPAN><SPAN class="punctuation token">(</SPAN>s <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> s<SPAN class="punctuation token">.</SPAN>Name <SPAN class="operator token">==</SPAN> colorBrewerSchemesName<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">string</SPAN> colorRampName <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Red to Green"</SPAN><SPAN class="punctuation token">;</SPAN>
IList<SPAN class="operator token"><</SPAN>ColorRampStyleItem<SPAN class="operator token">></SPAN> colorRampList <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">await</SPAN> style<SPAN class="punctuation token">.</SPAN><SPAN class="token function">SearchColorRampsAsync</SPAN><SPAN class="punctuation token">(</SPAN>colorRampName<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
ColorRampStyleItem colorRamp <SPAN class="operator token">=</SPAN> colorRampList<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">;</SPAN>
CIMStroke outline <SPAN class="operator token">=</SPAN> SymbolFactory<SPAN class="punctuation token">.</SPAN><SPAN class="token function">ConstructStroke</SPAN><SPAN class="punctuation token">(</SPAN>ColorFactory<SPAN class="punctuation token">.</SPAN>GreyRGB<SPAN class="punctuation token">,</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> SimpleLineStyle<SPAN class="punctuation token">.</SPAN>Solid<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">await</SPAN> QueuedTask<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Run</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN>
<SPAN class="punctuation token">{</SPAN>
GraduatedColorsRendererDefinition gcDef <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">GraduatedColorsRendererDefinition</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
ClassificationField <SPAN class="operator token">=</SPAN> <SPAN class="string token">"VALUE"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="comment token">// Defined Interval works fine</SPAN>
<SPAN class="comment token">//ClassificationMethod = ClassificationMethod.DefinedInterval,</SPAN>
<SPAN class="comment token">//IntervalSize = 0.2,</SPAN>
<SPAN class="comment token">// How to set breaks for Manual classification method?</SPAN>
ClassificationMethod <SPAN class="operator token">=</SPAN> ClassificationMethod<SPAN class="punctuation token">.</SPAN>Manual<SPAN class="punctuation token">,</SPAN>
<SPAN class="comment token">// Set break values?</SPAN>
ColorRamp <SPAN class="operator token">=</SPAN> colorRamp<SPAN class="punctuation token">.</SPAN>ColorRamp<SPAN class="punctuation token">,</SPAN>
SymbolTemplate <SPAN class="operator token">=</SPAN> SymbolFactory<SPAN class="punctuation token">.</SPAN><SPAN class="token function">ConstructPolygonSymbol</SPAN><SPAN class="punctuation token">(</SPAN>
ColorFactory<SPAN class="punctuation token">.</SPAN>GreenRGB<SPAN class="punctuation token">,</SPAN> SimpleFillStyle<SPAN class="punctuation token">.</SPAN>Solid<SPAN class="punctuation token">,</SPAN> outline<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">MakeSymbolReference</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN>
FeatureLayer outLyr <SPAN class="operator token">=</SPAN> LayerFactory<SPAN class="punctuation token">.</SPAN><SPAN class="token function">CreateFeatureLayer</SPAN><SPAN class="punctuation token">(</SPAN>uri<SPAN class="punctuation token">,</SPAN> MapView<SPAN class="punctuation token">.</SPAN>Active<SPAN class="punctuation token">.</SPAN>Map<SPAN class="punctuation token">,</SPAN> rendererDefinition<SPAN class="punctuation token">:</SPAN> gcDef<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>