Xceed Chart for WinForms v4.4 Documentation
SynchronizeMappingWithType Method
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > FillEffect Class : SynchronizeMappingWithType Method
Synchronizes the current texture mapper with the Type property of the FillEffectBase.
Syntax
'Declaration
 
Public Sub SynchronizeMappingWithType() 
'Usage
 
Dim instance As FillEffect

 

instance.SynchronizeMappingWithType()
public void SynchronizeMappingWithType()
Remarks
Different fill effect types require different mapping strategies. For example when you set a pattern filling type the most appropriate layout is tiled. This function applies an appropriate mapper for the current Type property value.
Example
The following example applies a pattern to the background. Note that we used the SynchronizeMappingWithType to apply a texture mapper appropriate for the pattern filling type.
Dim chart As Chart = CType((m_ChartControl.Charts(0)), Chart)

Dim fillEffect As FillEffectBase =  m_ChartControl.Background.FillEffect 

fillEffect.Type = FillEffectType.Pattern

fillEffect.HatchStyle = HatchStyle.DarkDownwardDiagonal

fillEffect.BeginColor = Color.AliceBlue

fillEffect.BeginColor = Color.BlanchedAlmond

fillEffect.SynchronizeMappingWithType()
Chart chart = (Chart)(m_ChartControl.Charts[0]);

FillEffectBase fillEffect = m_ChartControl.Background.FillEffect;

fillEffect.Type = FillEffectType.Pattern;

fillEffect.HatchStyle = HatchStyle.DarkDownwardDiagonal;

fillEffect.BeginColor = Color.AliceBlue;

fillEffect.BeginColor = Color.BlanchedAlmond;

fillEffect.SynchronizeMappingWithType();
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