This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Classes > G > GradientPattern CoClass (ArcObjects .NET 10.5 SDK) |
A gradient fill pattern object.
GradientPattern is used to draw a BasicFillSymbol using a color ramp.
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 | Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile. |
IPersistStream (esriSystem) | |
ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
A 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.