Spread Windows Forms 7.0 Product Documentation
ResetPictureTransparencyColor Method
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class : ResetPictureTransparencyColor Method


Glossary Item Box

Resets the transparency of a picture in the element to its default value.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub ResetPictureTransparencyColor() 
Visual Basic (Usage)Copy Code
Dim instance As ElementWindowless
 
instance.ResetPictureTransparencyColor()
C# 
public virtual void ResetPictureTransparencyColor()

Remarks

Use this method to reset the PictureTransparencyColor property to its default value.

Example

csharpCopy Code
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()
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.