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


Gets or sets the alignment of the skin's frame image. Only used if the image is not scaled.


Skin frame background image alignment used by ClampUnscale drawing mode.

Syntax

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

Return Value

A ChartImageAlign integer enumeration. The default is ChartImageAlign.TopLeft.

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.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 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 the alignment of the background image, and is only applied when the FrameBackImageMode property is set to "Unscaled".

For more information concerning the available alignments see the ChartImageAlign enumeration topic.

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

© 2009 All Rights Reserved.