Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / MarginLeft Property
Example


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