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


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