MESCIUS SPREAD for Windows Forms 15.0J
ResetPictureTransparencyColor メソッド (ElementControl)
使用例 

ピクチャの透過色をデフォルト値にリセットします。
構文
'宣言
 
Public Overridable Sub ResetPictureTransparencyColor() 
public virtual void ResetPictureTransparencyColor()
解説
このメソッドは、PictureTransparencyColorプロパティをデフォルト値にリセットするときに使用します。
使用例
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
参照

ElementControl クラス
ElementControl メンバ
PictureTransparencyColor プロパティ

 

 


© MESCIUS inc. All rights reserved.