PowerTools SPREAD for Windows Forms 10.0J
SelectionFont プロパティ (SheetView)


このシートの選択されている項目のデフォルトフォントを取得または設定します。
構文
'Declaration
 
Public Property SelectionFont As Font
'使用法
 
Dim instance As SheetView
Dim value As Font
 
instance.SelectionFont = value
 
value = instance.SelectionFont
public Font SelectionFont {get; set;}
次のサンプルコードは、SelectionFontプロパティを設定します。
fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
fpSpread1.Sheets[0].Cells[1, 1].Value = "test";
fpSpread1.Sheets[0].Cells[1, 0].Value = "test";
fpSpread1.Sheets[0].NullBackColor = Color.Red;
fpSpread1.Sheets[0].NullFont = new Font("Arial", 12);
fpSpread1.Sheets[0].NullForeColor = Color.Black;
fpSpread1.Sheets[0].LockFont = new Font("Comic Sans MS", 12);
fpSpread1.Sheets[0].LockForeColor = Color.Crimson;
fpSpread1.Sheets[0].SelectionFont = new Font("Comic Sans MS", 12);
FpSpread1.Sheets(0).Cells(1, 1).Locked = True
FpSpread1.Sheets(0).Cells(1, 1).Value = "test"
FpSpread1.Sheets(0).Cells(1, 0).Value = "test"
FpSpread1.Sheets(0).NullBackColor = Color.Red
FpSpread1.Sheets(0).NullFont = New Font("Arial", 12)
FpSpread1.Sheets(0).NullForeColor = Color.Black
FpSpread1.Sheets(0).LockFont = New Font("Comic Sans MS", 12)
FpSpread1.Sheets(0).LockForeColor = Color.Crimson
FpSpread1.Sheets(0).SelectionFont = New Font("Comic Sans MS", 12)
参照

SheetView クラス
SheetView メンバ

 

 


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