ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToAdfRenderer(FeatureRenderer,FeatureType,Boolean) Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > Converter Class > ToAdfRenderer Method : ToAdfRenderer(FeatureRenderer,FeatureType,Boolean) Method




featureRenderer
The ArcGIS Server FeatureRenderer to convert.
featureType
The featureType to use if symbols must be created.
symbolsCanBeNull
If true, symbols of the input featureType are created if the input renderer does not have symbols or they cannot be converted.
Converts the ArcGIS Server renderer to Web ADF renderer, with parameters to ensure symbols are created for the renderer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToAdfRenderer( _
   ByVal featureRenderer As FeatureRenderer, _
   ByVal featureType As FeatureType, _
   ByVal symbolsCanBeNull As Boolean _
) As IRenderer
Visual Basic (Usage)Copy Code
Dim featureRenderer As FeatureRenderer
Dim featureType As FeatureType
Dim symbolsCanBeNull As Boolean
Dim value As IRenderer
 
value = Converter.ToAdfRenderer(featureRenderer, featureType, symbolsCanBeNull)
C# 
public static IRenderer ToAdfRenderer( 
   FeatureRenderer featureRenderer,
   FeatureType featureType,
   bool symbolsCanBeNull
)

Parameters

featureRenderer
The ArcGIS Server FeatureRenderer to convert.
featureType
The featureType to use if symbols must be created.
symbolsCanBeNull
If true, symbols of the input featureType are created if the input renderer does not have symbols or they cannot be converted.

Remarks

This method will handle input ArcGIS Server renderers of type SimpleRenderer, ClassBreaksRenderer and UniqueValueRenderer.

See Also

© 2010 All Rights Reserved.