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


In This Topic
    PictureMargin Property (ElementWindowless)
    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 ElementWindowless
    Dim value As Integer
     
    instance.PictureMargin = value
     
    value = instance.PictureMargin
    public virtual int PictureMargin {get; set;}
    Example
    element.Picture = System.Drawing.Image.FromFile("d:\\mail16A.ico");
    element.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight;
    element.PictureMargin = 25;
    element.Picture = System.Drawing.Image.FromFile("d:\mail16A.ico")
    element.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight
    element.PictureMargin = 25
    See Also