Spread Windows Forms 10.0 Product Documentation
ResetPictureTransparencyColor Method (ElementControl)
Example 


Resets the picture transparency color to its default color.
Syntax
'Declaration
 
Public Overridable Sub ResetPictureTransparencyColor() 
'Usage
 
Dim instance As ElementControl
 
instance.ResetPictureTransparencyColor()
public virtual void ResetPictureTransparencyColor()
Remarks
Use this method to reset the PictureTransparencyColor property to its default value.
Example
control.Picture = Image.FromFile(Application.StartupPath + "\\smokes.bmp");
control.MarginTop = 3;
control.MarginBottom = 3;
control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight;
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left;
control.AlignVert = FarPoint.Win.VerticalAlignment.Bottom;
control.TextOrientation = FarPoint.Win.TextOrientation.TextVertical;
control.PictureMargin = 124;
control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate180;
control.BackColor = Color.Red;
control.Text = "NO SMOKING";
control.PictureTransparencyColor = Color.Blue;
    private void button1_Click(object sender, System.EventArgs e)
    {
        control.ResetPictureTransparencyColor()
    }
control.Picture = Image.FromFile(Application.StartupPath & "\smokes.bmp")
control.MarginTop = 3
control.MarginBottom = 3
control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left
control.AlignVert = FarPoint.Win.VerticalAlignment.Bottom
control.TextOrientation = FarPoint.Win.TextOrientation.TextVertical
control.PictureMargin = 124
control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate180
control.BackColor = Color.Red
control.Text = "NO SMOKING"
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 Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ElementControl Class
ElementControl Members
PictureTransparencyColor Property

 

 


Copyright © GrapeCity, inc. All rights reserved.