Dundas Chart for ASP.NET
FrameBackImageMode Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > BorderSkinAttributes Class : FrameBackImageMode Property


Gets or sets the drawing mode of the border skin's frame.


Skin frame background image drawing mode.

Syntax

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

Return Value

A ChartImageWrapMode integer enumeration. The default is Tile.

Example

The following sample specifies a border skin that uses a frame in the Page_Load event. We also use an image that is tiled by default.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl
...

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 image to be used, and do not scale it. Align it to the top-left part of the frame
    Chart1.BorderSkin.FrameBackImage = "../../../MyImage.ico"
    Chart1.BorderSkin.FrameBackImageMode = ChartImageWrapMode.Unscaled
    Chart1.BorderSkin.FrameBackImageAlign = ChartImageAlign.TopLeft

End Sub

Remarks

This property determines how the image is displayed (e.g. tiled, scaled, etc.).

If an image is scaled it will be stretched to fit within the entire frame of the skin. If the image is tiled it is repeatedly drawn, starting from the top-left corner of the frame.

For more information concerning the available wrapping modes see the ChartImageWrapMode enumeration topic.

If the image mode is set to "Unscaled" then the location where the image is drawn is determined by the FrameBackImageAlign property setting.

Background images take precedence over both gradient colors and hatching.

Setting this property for border skins that do not use frames will have no effect.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.