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


Glossary Item Box

Resets the picture transparency color to its default color.

Syntax

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

Remarks

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

Example

C#Copy Code
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()
    }
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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