Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / FillEffect Class / ImageFileName Property
Example


In This Topic
    ImageFileName Property
    In This Topic
    The full path to an image file used to create a texture.
    Syntax
    'Declaration
     
    Public Property ImageFileName As String
    'Usage
     
    Dim instance As FillEffect
    Dim value As String
     
    instance.ImageFileName = value
     
    value = instance.ImageFileName
    public string ImageFileName {get; set;}
    Remarks
    The image file that will be used as a texture. This property is an empty string by default. Note that the component does not check whether the image exists or not when you set this property.
    Example
    The following examples stretches an image on the back chart wall.
    Dim chart As Chart = CType((ChartControl1.Charts(0)), Chart)
    Dim fillEffect As FillEffectBase =  chart.Wall(ChartWallType.Back).FillEffect 
    fillEffect.Type = FillEffectType.Image
    fillEffect.ImageFileName = "d:\Windows\zapotec.bmp"
    Chart chart = (Chart)(ChartControl1.Charts[0]);
    FillEffectBase fillEffect = chart.Wall(ChartWallType.Back).FillEffect;
    fillEffect.Type = FillEffectType.Image;
    fillEffect.ImageFileName = "d:\\Windows\\zapotec.bmp";
    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