![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
GradientFillSymbol Class | |
Members Example See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace : GradientFillSymbol Class |

Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class GradientFillSymbol Inherits FillSymbol |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As GradientFillSymbol |
C# | |
---|---|
[SerializableAttribute()] public class GradientFillSymbol : FillSymbol |
Visual Basic | ![]() |
---|---|
' Create a new symbol and set its properties Dim gradientFillSymb As New GradientFillSymbol() gradientFillSymb.Type = GradientFillType.Vertical gradientFillSymb.StartColor = Drawing.Color.AntiqueWhite gradientFillSymb.FinishColor = Drawing.Color.Olive gradientFillSymb.Antialiasing = False gradientFillSymb.AllowLabelOverlap = True gradientFillSymb.Transparency = 0 ' Retrieve the renderer for an existing polygon layer Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries") Dim renderer As SimpleRenderer = layer.Renderer ' Replace the renderer's symbol with the one we created renderer.Symbol = simpleFillSymb |
C# | ![]() |
---|---|
// Create a new symbol and set its properties GradientFillSymbol gradientFillSymb = new GradientFillSymbol(); gradientFillSymb.Type = GradientFillType.Vertical; gradientFillSymb.StartColor = Drawing.Color.AntiqueWhite; gradientFillSymb.FinishColor = Drawing.Color.Olive; gradientFillSymb.Antialiasing = false; gradientFillSymb.AllowLabelOverlap = true; gradientFillSymb.Transparency = 0; // Retrieve the renderer for an existing polygon layer FeatureLayer layer = mapView.Layers.FindByName("Countries"); SimpleRenderer renderer = layer.Renderer; // Replace the renderer's symbol with the one we created renderer.Symbol = simpleFillSymb; |
GradientFillSymbol fills each polygon to which the renderer applies with a gradual gradient, from the StartColor to the FinishColor. The Type property determines where the StartColor starts and in which direction the change progresses.
GradientFillSymbol does not outline polygon features. If outlines are desired, it is possible to use a GroupRenderer to combine this symbol with a SimpleFillSymbol (or a line symbol).
For ArcMap Server image services, valid only for acetate layers. ArcMap Server ignores several of the properties of this class. For details, see the topic for GRADIENTFILLSYMBOL in the ArcIMS Help, at ArcXML Guide - Symbol elements - GRADIENTFILLSYMBOL. The ArcIMS Help is also available online at ESRI).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family