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


In This Topic
    HorzAlign Property (Watermark)
    In This Topic
    The HorzAlign of the watermark.
    Syntax
    'Declaration
     
    <CategoryAttribute("Position")>
    <DescriptionAttribute("The HorzAlign of the watermark")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property HorzAlign As HorzAlign
    'Usage
     
    Dim instance As Watermark
    Dim value As HorzAlign
     
    instance.HorzAlign = value
     
    value = instance.HorzAlign
    [Category("Position")]
    [Description("The HorzAlign of the watermark")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public HorzAlign HorzAlign {get; set;}
    Remarks
    Specifies how the watermarks aligns horizontally relative to the watermark origin point defined by the HorizontalMargin and VerticalMargin properties.
    Example
    The following example creates a watermark at the left top corner of the control.
    Dim watermark As Watermark =  New Watermark() 
    watermark.ImageFileName = "d:\windows\Coffee Bean.bmp"
    watermark.HorzAlign = HorzAlign.Left
    watermark.VertAlign = VertAlign.Top
    watermark.HorizontalMargin = 0
    watermark.VerticalMargin = 0
    ChartControl.Watermarks.Add(watermark)
    Watermark watermark = new Watermark();
    watermark.ImageFileName = "d:\\windows\\Coffee Bean.bmp";
    watermark.HorzAlign = HorzAlign.Left;
    watermark.VertAlign = VertAlign.Top;
    watermark.HorizontalMargin = 0;
    watermark.VerticalMargin = 0;
    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