Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / Watermark Class / AlwaysOnTop Property
Example


In This Topic
    AlwaysOnTop Property
    In This Topic
    Controls the Z position of the watermark.
    Syntax
    'Declaration
     
    <CategoryAttribute("Appearance")>
    <DescriptionAttribute("Controls the Z posion of the watermark")>
    <DefaultValueAttribute(True)>
    Public Property AlwaysOnTop As Boolean
    'Usage
     
    Dim instance As Watermark
    Dim value As Boolean
     
    instance.AlwaysOnTop = value
     
    value = instance.AlwaysOnTop
    [Category("Appearance")]
    [Description("Controls the Z posion of the watermark")]
    [DefaultValue(true)]
    public bool AlwaysOnTop {get; set;}
    Remarks
    When set to true the watermark will appear on top of the chart. Otherwise the chart will overlap the watermark. The default value is true.
    Example
    The following example creates a watermark at the bottom of the Z order.
    Dim watermark As Watermark =  New Watermark() 
    watermark.ImageFileName = "d:\windows\Coffee Bean.bmp"
    watermark.AlwaysOnTop = False
    ChartControl.Watermarks.Add(watermark)
    Watermark watermark = new Watermark();
    watermark.ImageFileName = "d:\\windows\\Coffee Bean.bmp";
    watermark.AlwaysOnTop = false;
    ChartControl.Watermarks.Add(watermark);
    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