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


Gets or sets the color of the border skin's frame.


Skin frame background gradient type.

Syntax

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

Return Value

A GradientType integer enumeration. The default value is None.

Example

The following sample specifies a border skin that uses a frame in the Page_Load event. We also use gradient colors of blue and red for the frame.
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 primary and secondary colors of the skin, and the gradient type
    Chart1.BorderSkin.FrameBackColor = Color.Red
    Chart1.BorderSkin.FrameBackGradientEndColor = Color.Blue
    Chart1.BorderSkin.FrameBackGradientType = GradientType.LeftRight

End Sub

Remarks

This property determines the secondary color of a border skin, and is used when gradient colors or hatching is applied.

You can set FrameBackGradientEndColor to any valid ARGB (Alpha, Red, Green, Blue) value.  

If hatching is used then this property determines the color of the hatching lines.

To use gradient colors:

  1. Set the primary color using the FrameBackColor property.
  2. Set the secondary color using this FrameBackGradientEndColor property.
  3. Set this FrameBackGradientType property to the desired gradient style.

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

Hatching and background images have precedence over gradient colors.

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.