A gradient fill pattern object.
Product Availability
Description
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
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. |
Remarks
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:
- Color 1 - esriAttributeTypeColor
- Color 2 - esriAttributeTypeColor
- Style - esriAttributeTypeEnum
- Intervals - esriAttributeTypeEnum
- Percentage - esriAttributeInteger
- Algorithm - esriAttributeDouble
- Angle - esriAttributeDouble
The following example shows how to assign values to the attributes of a GradientPattern using IGraphicAttributes interface.