This document is archived and information here might be outdated.  Recommended version.

GradientPattern Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Classes > G > GradientPattern Class
ArcGIS Developer Help

GradientPatternClass Class

A gradient fill pattern object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


GradientPattern is used to draw a BasicFillSymbol using a color ramp.

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.


Interfaces Description
IDocumentVersionSupportGEN (esriSystem) Provides access to extend the IObjectStream interface with methods to hande saving objects that did not exist in previous versions of the software.
IDrawingOutline Provides access to methods dealing with the outline of a drawing rule.
IFillPattern Provides access to methods that control the fill pattern.
IGraphicAttributes Provides access to members that control the graphic attributes.
IGraphicAttributes2 Provides access to members that control the graphic attributes.
IPersist (esriSystem)
IPersistStream (esriSystem)
ISupportErrorInfo (esriSystem)


GradientPattern is used to draw BasicFillSymbol with a gradient fill pattern.

Use IFillPattern interface to create a new GradientPattern and IGraphicAttributes interface to assign attribute values to the fill pattern.

This object can be controlled using the following GraphicAttributes:

The following example shows how to assign values to the attributes of a GradientPattern using IGraphicAttributes interface.