Nevron .NET Vision
Nevron.GraphicsCore Namespace / NHatchFillStyle Class / Init Method
The type of the pattern from the HatchStyle enumeration.
The foreground color of the pattern
The background color of the pattern
Example


In This Topic
    Init Method (NHatchFillStyle)
    In This Topic
    Use this function . Note that this function will also change the current Mapping.
    Syntax
    'Declaration
     
    
    Public Sub Init( _
       ByVal style As System.Drawing.Drawing2D.HatchStyle, _
       ByVal foregroundColor As NColor, _
       ByVal backgroundColor As NColor _
    ) 
    'Usage
     
    
    Dim instance As NHatchFillStyle
    Dim style As System.Drawing.Drawing2D.HatchStyle
    Dim foregroundColor As NColor
    Dim backgroundColor As NColor
     
    instance.Init(style, foregroundColor, backgroundColor)
    public void Init( 
       System.Drawing.Drawing2D.HatchStyle style,
       NColor foregroundColor,
       NColor backgroundColor
    )

    Parameters

    style
    The type of the pattern from the HatchStyle enumeration.
    foregroundColor
    The foreground color of the pattern
    backgroundColor
    The background color of the pattern
    Remarks
    Use this function if you want to modify the properties of the NHatchFillStyle with a single function call. This is the recommended approach if you modify more than one property at a time.
    Example
    The following example applies an image to the left chart wall:
    Dim chart As NChart = CType((m_ChartControl.Charts(0)), NChart)
    Dim hatchFillStyle As New NHatchFillStyle
    hatchFillStyle.Init(HatchStyle.DiagonalBrick, Color.White, Color.Black)
    chart.Wall(ChartWallType.Left).FillStyle = hatchFillStyle
    NChart chart = (NChart)(m_ChartControl.Charts[0]);
    NHatchFillStyle hatchFillStyle = new NHatchFillStyle();
    hatchFillStyle.Init(HatchStyle.DiagonalBrick, Color.White, Color.Black);
    chart.Wall(ChartWallType.Left).FillStyle = hatchFillStyle;
    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