PowerTools SPREAD for Windows Forms 8.0J
ShadowDirection プロパティ


影の向きを取得または設定します。
構文
'Declaration
 
Public Property ShadowDirection As ShadowDirection
'使用法
 
Dim instance As PSShape
Dim value As ShadowDirection
 
instance.ShadowDirection = value
 
value = instance.ShadowDirection
public ShadowDirection ShadowDirection {get; set;}

プロパティ値

シェイプの影の向きを含むShadowDirectionオブジェクト
次のサンプル コードでは、このプロパティを継承するクラスでのプロパティの使用方法を示すために、このプロパティを使用してシェイプをカスタマイズしています。
FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape sh = new FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape();
sh.Name = "Arrow";
fpSpread1.ActiveSheet.AddShape(sh);

FarPoint.Win.Spread.DrawingSpace.PSShape ps;
ps = fpSpread1.ActiveSheet.GetShape("Arrow");
ps.AlphaBlendShadowColor = 150;
ps.BackColor = Color.Red;
ps.CanRenderText = true;
ps.DynamicMove = true;
ps.DynamicSize = true;
ps.ShadowColor = Color.Orange;
ps.ShadowDirection = DrawingSpace.ShadowDirection.TopLeft;
ps.ShadowOffset = 5;
ps.ShadowOffsetX = 10;
ps.ShadowOffsetY = 10;

Dim sh As New FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape
sh.Name = "Arrow"
FpSpread1.ActiveSheet.AddShape(sh)

Dim ps As FarPoint.Win.Spread.DrawingSpace.PSShape
ps = FpSpread1.ActiveSheet.GetShape("Arrow")
ps.AlphaBlendShadowColor = 150
ps.BackColor = Color.Red
ps.CanRenderText = True
ps.DynamicMove = True
ps.DynamicSize = True
ps.ShadowColor = Color.Orange
ps.ShadowDirection = DrawingSpace.ShadowDirection.TopLeft
ps.ShadowOffset = 5
ps.ShadowOffsetX = 10
ps.ShadowOffsetY = 10
参照

PSShape クラス
PSShape メンバ

 

 


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