Xceed Chart for WinForms v4.4 Documentation
HorizontalMargin Property (Watermark)
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > Watermark Class : HorizontalMargin Property
The horizontal position of the watermark.
Syntax
'Declaration
 
<DescriptionAttribute("The horizontal position of the watermark")>
<DefaultValueAttribute()>
<CategoryAttribute("Position")>
Public Property HorizontalMargin As Single
'Usage
 
Dim instance As Watermark
Dim value As Single
 
instance.HorizontalMargin = value
 
value = instance.HorizontalMargin
[Description("The horizontal position of the watermark")]
[DefaultValue()]
[Category("Position")]
public float HorizontalMargin {get; set;}
Remarks
This value is specified in percents of the control window height.
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

Reference

Watermark Class
Watermark Members