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


In This Topic
    PictureTransparencyColor Property (ElementWindowless)
    In This Topic
    Gets or sets the picture transparency color for the element.
    Syntax
    'Declaration
     
    
    Public Overridable Property PictureTransparencyColor As Color
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Color
     
    instance.PictureTransparencyColor = value
     
    value = instance.PictureTransparencyColor
    public virtual Color PictureTransparencyColor {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