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

入力候補値を表示するかどうかを示す値を取得または設定します。
構文
'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.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
//Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5;
ncell1.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
'Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5
ncell1.ShowRecommendedValue = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
参照

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


© MESCIUS inc. All rights reserved.