Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementContainerControl Class / MarginBottom Property
Example


In This Topic
    MarginBottom Property (ElementContainerControl)
    In This Topic
    Gets or sets the margin between the bottom of the control and its contents.
    Syntax
    'Declaration
     
    
    Public Overridable Property MarginBottom As Integer
    'Usage
     
    
    Dim instance As ElementContainerControl
    Dim value As Integer
     
    instance.MarginBottom = value
     
    value = instance.MarginBottom
    public virtual int MarginBottom {get; set;}
    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";
    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.MarginTop = 3
    control.MarginBottom = 3
    control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight
    control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left
    control.BackColor = Color.Red
    control.Text = "NO SMOKING"
    See Also