'Usage
Dim instance As FillEffect
Dim hatchStyle As HatchStyle
Dim beginColor As Color
Dim endColor As Color
instance.SetPattern(hatchStyle, beginColor, endColor)
The type of the pattern from the HatchStyle enumeration.
beginColor
The foreground color of the pattern
endColor
The background color of the pattern
Remarks
Use this function if you want to apply a gradient fill effect. The function will
change the Type, HatchStyle, BeginColor and EndColor properties of the FillEffectBase.
It will also replace the current FillEffectMapping object with a texture mapper with tiled
layout type and object linear map mode. For more information see the topics under the
"Fill Effects" book in the Users Guide.
Example
The following example applies an image to the left chart wall:
Dim chart As Chart = CType((m_ChartControl.Charts(0)), Chart)
Dim fillEffect As FillEffectBase = chart.Wall(ChartWallType.Left).FillEffect
fillEffect.SetPattern(HatchStyle.DiagonalBrick, Color.White, Color.Black)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2