MESCIUS SPREAD for Windows Forms 17.0J
ShowRecommendedValue プロパティ (GcTextBoxCellType)

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

プロパティ値

入力候補値を表示する場合は<see langword="true" />。それ以外の場合は<see langword="false" />。<br />
デフォルト値はfalseです。
解説
この<b>ShowRecommendedValue</b>が<see langword="true" />の場合、値が完全に入力されていないときに<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTimeSpan.RecommendedValue" />プロパティの値が表示されます。それ以外の場合、<b>RecommendedValue</b>プロパティの値は表示されません。
次のサンプルコードは、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 メンバ

 

 


© MESCIUS inc. All rights reserved.