PowerTools SPREAD for Windows Forms 8.0J
Thickness プロパティ (LineShape)


線の幅を取得または設定します。
構文
'Declaration
 
Public Overridable Property Thickness As Single
'使用法
 
Dim instance As LineShape
Dim value As Single
 
instance.Thickness = value
 
value = instance.Thickness
public virtual float Thickness {get; set;}

プロパティ値

線の太さ(ピクセル単位)を表す単精度浮動小数点数
解説

線の最大の太さは64ピクセルです。

次のサンプルコードは、端点が丸い6ピクセル幅の線シェイプを作成します。
FarPoint.Win.Spread.DrawingSpace.LineShape ls = new FarPoint.Win.Spread.DrawingSpace.LineShape();
ls.EndCap = Drawing2D.LineCap.RoundAnchor;
ls.StartCap = Drawing2D.LineCap.RoundAnchor;
ls.Thickness = 6;
ls.SetBounds(10, 10, 50, 50);

fpSpread1.ActiveSheet.AddShape(ls);
Dim ls As New FarPoint.Win.Spread.DrawingSpace.LineShape()
ls.EndCap = Drawing2D.LineCap.RoundAnchor
ls.StartCap = Drawing2D.LineCap.RoundAnchor
ls.Thickness = 6
ls.SetBounds(10, 10, 50, 50)

FpSpread1.ActiveSheet.AddShape(ls)
参照

LineShape クラス
LineShape メンバ

 

 


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