PowerTools SPREAD for Windows Forms 10.0J
AlphaBlendBackColor プロパティ


オブジェクトの背景色のアルファブレンド値を取得または設定します。
構文
'Declaration
 
Public Overridable Property AlphaBlendBackColor As Integer
'使用法
 
Dim instance As PSObject
Dim value As Integer
 
instance.AlphaBlendBackColor = value
 
value = instance.AlphaBlendBackColor
public virtual int AlphaBlendBackColor {get; set;}

プロパティ値

アルファ ブレンドの量を表す Integer
解説
アルファブレンドは、背景色の透過する量を決定します。
次のサンプル コードでは、このプロパティを継承するクラスでのプロパティの使用方法を示すために、このプロパティを使用してシェイプをカスタマイズしています。
System.Drawing.Point[] pts = {new System.Drawing.Point(25, 0), 
                                new System.Drawing.Point(0, 50), 
                                new System.Drawing.Point(20, 50), 
                                new System.Drawing.Point((int)2.5, 100), 
                                new System.Drawing.Point(40, 40), 
                                new System.Drawing.Point(20, 40), 
                                new System.Drawing.Point(40, 0), 
                                new System.Drawing.Point(25, 0)};

System.Drawing.Drawing2D.GraphicsPath gpath = new System.Drawing.Drawing2D.GraphicsPath();
gpath.AddPolygon(pts);

FarPoint.Win.Spread.DrawingSpace.PSObject pso = new FarPoint.Win.Spread.DrawingSpace.CustomShape();
pso.BackColor = Color.Black;
pso.AlphaBlendBackColor = 90;
pso.Anchor = 20;
pso.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
pso.CanRotate = true;
pso.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
pso.Shape = gpath;
pso.SetBounds(250, 250, 120, 120);
fpSpread1.ActiveSheet.AddShape(pso);
Dim pts As System.Drawing.Point() = {New System.Drawing.Point(25, 0),  _
                                New System.Drawing.Point(0, 50),  _
                                New System.Drawing.Point(20, 50),  _
                                New System.Drawing.Point(2.5, 100),  _
                                New System.Drawing.Point(40, 40),  _
                                New System.Drawing.Point(20, 40),  _
                                New System.Drawing.Point(40, 0),  _
                                New System.Drawing.Point(25, 0)}

Dim gpath As System.Drawing.Drawing2D.GraphicsPath = New System.Drawing.Drawing2D.GraphicsPath
gpath.AddPolygon(pts)

Dim pso As New FarPoint.Win.Spread.DrawingSpace.CustomShape
pso.BackColor = Color.Black
pso.AlphaBlendBackColor = 90
pso.Anchor = 20
pso.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
pso.CanRotate = True
pso.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth
pso.Shape = gpath
pso.SetBounds(250, 250, 120, 120)
FpSpread1.ActiveSheet.AddShape(pso)
参照

PSObject クラス
PSObject メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.