PowerTools SPREAD for Windows Forms 8.0J
ShowRecommendedValue プロパティ (GcTextBoxCellType)


入力候補値を表示するかどうかを示す値を取得または設定します。
構文
'Declaration
 
Public Property ShowRecommendedValue As Boolean
'使用法
 
Dim instance As GcTextBoxCellType
Dim value As Boolean
 
instance.ShowRecommendedValue = value
 
value = instance.ShowRecommendedValue
public bool ShowRecommendedValue {get; set;}

プロパティ値

入力候補値を表示する場合は true。それ以外の場合は false
既定値は false です。
解説
ShowRecommendedValuetrue の場合、値が完全に入力されていないときに GcTextBox.RecommendedValue プロパティの値が表示されます。それ以外の場合、RecommendedValue プロパティの値は表示されません。
次のサンプルコードは、ShowRecommendedValue プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.RecommendedValue = System.DateTime.Now;
datecell.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.RecommendedValue = "Test";
textcell.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.RecommendedValue = System.DateTime.Now
datecell.ShowRecommendedValue = True
FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell

Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.RecommendedValue = "Test"
textcell.ShowRecommendedValue = True
FpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
参照

GcTextBoxCellType クラス
GcTextBoxCellType メンバ

 

 


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