Xceed Chart for WinForms v4.4 Documentation
SetPredefinedAdvancedGradient Method
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > FillEffect Class : SetPredefinedAdvancedGradient Method
The scheme of the advanced gradient. All gradients from a scheme share the same colors for points and background.
The variant of the scheme in the range [0, 14]
Loads a predefined advanced gradient in the fill effect.
Syntax
'Declaration
 
Public Sub SetPredefinedAdvancedGradient( _
   ByVal scheme As AdvancedGradientScheme, _
   ByVal variant As Integer _
) 
'Usage
 
Dim instance As FillEffect
Dim scheme As AdvancedGradientScheme
Dim variant As Integer
 
instance.SetPredefinedAdvancedGradient(scheme, variant)
public void SetPredefinedAdvancedGradient( 
   AdvancedGradientScheme scheme,
   int variant
)

Parameters

scheme
The scheme of the advanced gradient. All gradients from a scheme share the same colors for points and background.
variant
The variant of the scheme in the range [0, 14]
Remarks
An advanced gradient is defined by its background color and color points each of them having properties for color, position, style and others. When you load a predefined advanced gradient the control will automatically configure these properties for you. The function will also replace the current FillEffectMapping object with a texture mapper with stretched 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 will set a Fog1 variant 11 predefined gradient to the left chart wall
Dim chart As Chart = CType((ChartControl.Charts(0)), Chart)
Dim fillEffect As FillEffectBase =  chart.Wall(ChartWallType.Left).FillEffect 
fillEffect.SetPredefinedAdvancedGradient(AdvancedGradientScheme.Fog1, 11)
Chart chart = (Chart)(ChartControl.Charts[0]);
FillEffectBase fillEffect = chart.Wall(ChartWallType.Left).FillEffect;
fillEffect.SetPredefinedAdvancedGradient(AdvancedGradientScheme.Fog1, 11);
Requirements

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

See Also

Reference

FillEffect Class
FillEffect Members