PowerTools SPREAD for Windows Forms 10.0J
TextIndent プロパティ (Appearance)


セル内のテキストのインデント量を取得または設定します。
構文
'Declaration
 
Public Property TextIndent As Integer
'使用法
 
Dim instance As Appearance
Dim value As Integer
 
instance.TextIndent = value
 
value = instance.TextIndent
public int TextIndent {get; set;}

プロパティ値

テキストをインデントするピクセル数を表すInteger
次のサンプルコードは、新しい外観を作成します。
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(Color.Beige, Color.Blue, new Font("Comic Sans MS",
10), FarPoint.Win.Spread.CellHorizontalAlignment.Distributed, FarPoint.Win.Spread.CellVerticalAlignment.Distributed, true,
true, Color.Bisque, Color.Brown, Color.Red, 
Color.Yellow, FarPoint.Win.VisualStyles.Off, FarPoint.Win.Spread.SortState.None, FarPoint.Win.Spread.FilterState.None, true,
true, false, false); 
appr.ContainsSelection = false; 
appr.TextIndent = 20; 
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.SetAppearance(appr); 
fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si); 
Dim appr As New FarPoint.Win.Spread.Appearance(Color.Beige, Color.Blue, New Font("Comic Sans MS", 10), FarPoint.Win.Spread.CellHorizontalAlignment.Distributed,
FarPoint.Win.Spread.CellVerticalAlignment.Distributed, True, True, Color.Bisque, Color.Brown, Color.Red, Color.Yellow, FarPoint.Win.VisualStyles.Off,
FarPoint.Win.Spread.SortState.None, FarPoint.Win.Spread.FilterState.None, True, True, False, False)
appr.ContainsSelection = False
appr.TextIndent = 20
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
FpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si)
参照

Appearance クラス
Appearance メンバ

 

 


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