Spread Windows Forms 12.0 Product Documentation
ResetPictureTransparencyColor Method (ElementWindowless)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class : ResetPictureTransparencyColor Method
Resets the transparency of a picture in the element to its default value.
Syntax
'Declaration
 
Public Overridable Sub ResetPictureTransparencyColor() 
'Usage
 
Dim instance As ElementWindowless
 
instance.ResetPictureTransparencyColor()
public virtual void ResetPictureTransparencyColor()
Remarks
Use this method to reset the PictureTransparencyColor property to its default value.
Example
control.Picture = Image.FromFile("d:\overlay.bmp");
control.MarginTop = 3;
control.MarginBottom = 3;
control.PictureTransparencyColor = Color.Blue;
private void button1_Click(object sender, System.EventArgs e)
{
control.ResetPictureTransparencyColor()
}
control.Picture = Image.FromFile("d:\overlay.bmp")
control.MarginTop = 3
control.MarginBottom = 3
control.PictureTransparencyColor = Color.Blue
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
control.ResetPictureTransparencyColor()
End Sub
See Also

Reference

ElementWindowless Class
ElementWindowless Members
PictureTransparencyColor Property