PowerTools SPREAD for Windows Forms 10.0J
Inset プロパティ (CompoundBorder)


複合境界線の境界線のインセットを取得します。
構文
'Declaration
 
Public ReadOnly Property Inset As Inset
'使用法
 
Dim instance As CompoundBorder
Dim value As Inset
 
value = instance.Inset
public Inset Inset {get;}

プロパティ値

余白(インセット)のサイズを含む Inset オブジェクト
解説

このプロパティが使用できるのは実行時のみです。

次のサンプル コードは、境界線の余白(インセット)を返します。
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed);

FarPoint.Win.ComplexBorderSide side1 = new FarPoint.Win.ComplexBorderSide(); 
FarPoint.Win.ComplexBorder lb = new FarPoint.Win.ComplexBorder(side); 
FarPoint.Win.ComplexBorder tb = new FarPoint.Win.ComplexBorder(side1); 
FarPoint.Win.CompoundBorder cb = new FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red);
FarPoint.Win.Inset inset = cb.Inset;
MessageBox.Show("The right inset for the border is " + inset.Right.ToString() + ".");
Dim side As New FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed)
Dim side1 As New FarPoint.Win.ComplexBorderSide
Dim lb As New FarPoint.Win.ComplexBorder(side)
Dim tb As New FarPoint.Win.ComplexBorder(side1)
Dim cb As New FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red)
Dim inset As FarPoint.Win.Inset = cb.Inset
MessageBox.Show("The right inset for the border is " + inset.Right.ToString() + ".")
参照

CompoundBorder クラス
CompoundBorder メンバ

 

 


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