Spread WinForms 15
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementContainerControl Class / MarginLeft Property
Example


In This Topic
MarginLeft Property (ElementContainerControl)
In This Topic
Gets or sets the margin between the left edge of the control and its contents.
Syntax
'Declaration
 
Public Overridable Property MarginLeft As Integer
 
'Usage
 
Dim instance As ElementContainerControl
Dim value As Integer
 
instance.MarginLeft = value
 
value = instance.MarginLeft
Example
control.Picture = Image.FromFile(Application.StartupPath + "\\smokes.bmp");
control.PictureMargin = 34;
control.MarginTop = 3;
control.MarginBottom = 3;
control.MarginLeft = 3;
control.MarginRight = 3;
control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate180;
control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight;
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left;
control.BackColor = Color.Red;
control.Text = "NO SMOKING";
See Also