Dundas Chart for Windows Forms
FrameBackHatchStyle Property
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > BorderSkinAttributes Class : FrameBackHatchStyle Property


Gets or sets the hatching style of the border skin's frame.


Skin frame back hatch style.

Syntax

Visual Basic (Declaration)  
Public Property FrameBackHatchStyle As ChartHatchStyle
Visual Basic (Usage) Copy Code
Dim instance As BorderSkinAttributes
Dim value As ChartHatchStyle
 
instance.FrameBackHatchStyle = value
 
value = instance.FrameBackHatchStyle
C#  
public ChartHatchStyle FrameBackHatchStyle {get; set;}

Return Value

ChartHatchStyle enumeration. The default value is ChartHatchStyle.None.

Example

The following sample specifies a border skin that uses a frame in the Page_Load event. We use a hatch pattern, with red hatch lines.
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
...

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'specify skin style
    Chart1.BorderSkin.SkinStyle = BorderSkinStyle.FrameThin6

    'set the hatching type and the color of the hatch lines
    Chart1.BorderSkin.FrameBackHatchStyle = ChartHatchStyle.DarkDownwardDiagonal
    Chart1.BorderSkin.FrameBackGradientEndColor = Color.Red

End Sub

Remarks

This property specifies a hatch pattern used by a brush of type HatchBrush. The hatch pattern consists of a solid background color and lines drawn over the background.

For a listing of available hatching styles refer to the ChartHatchStyle enumeration.

Note that the color of hatching lines is determined by the FrameBackGradientEndColor property.

Setting this property for border skins that do not use frames (e.g. SkinStyle=BorderSkinStyle.Raised) will have no effect.

Hatching takes precedence over gradient colors, but not over background images.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.