Xceed Chart for WinForms v4.4 Documentation
HatchStyle Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > FillEffect Class : HatchStyle Property
The pattern type of the fill effect.
Syntax
'Declaration
 
Public Property HatchStyle As HatchStyle
'Usage
 
Dim instance As FillEffect
Dim value As HatchStyle
 
instance.HatchStyle = value
 
value = instance.HatchStyle
public HatchStyle HatchStyle {get; set;}
Remarks
Xceed Chart for WinForms supports 48 pattern types which you may be familiar with if you worked with the Excel build-in chart. Patterns are internally rendered as textures. It is recommended to apply patterns by using the SetPattern function because it will also assign a proper texture mapper.
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