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


In This Topic
    Picture Property (ElementWindowless)
    In This Topic
    Gets or sets the picture for the element.
    Syntax
    'Declaration
     
    
    Public Overridable Property Picture As Image
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Image
     
    instance.Picture = value
     
    value = instance.Picture
    public virtual Image Picture {get; set;}
    Example
    control.Picture = Image.FromFile("d:\overlay.bmp");
    control.MarginTop = 3;
    control.MarginBottom = 3;
    control.PictureTransparencyColor = Color.Blue;
    control.Picture = Image.FromFile("d:\overlay.bmp")
    control.MarginTop = 3
    control.MarginBottom = 3
    control.PictureTransparencyColor = Color.Blue
    See Also