Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementContainerControl Class / PictureMargin Property
Example


In This Topic
    PictureMargin Property (ElementContainerControl)
    In This Topic
    Gets or sets the margin between the text and the picture.
    Syntax
    'Declaration
     
    
    Public Overridable Property PictureMargin As Integer
    'Usage
     
    
    Dim instance As ElementContainerControl
    Dim value As Integer
     
    instance.PictureMargin = value
     
    value = instance.PictureMargin
    public virtual int PictureMargin {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