Spread WinForms 15
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / MarginTop Property
Example


In This Topic
MarginTop Property (ElementWindowless)
In This Topic
Gets or sets the margin between the top of the element and its contents.
Syntax
'Declaration
 
Public Overridable Property MarginTop As Integer
 
'Usage
 
Dim instance As ElementWindowless
Dim value As Integer
 
instance.MarginTop = value
 
value = instance.MarginTop
Example
element.Picture = System.Drawing.Image.FromFile("d:\\mail16A.ico");
element.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight;
element.PictureMargin = 25;
element.MarginTop = 20;
See Also