GrapeCity SPREAD for Windows Forms 12.0J
FractionRenderOnly プロパティ


値が分数として表示される場合に編集モードで分数を許可するかどうかを取得または設定します。
構文
'Declaration
 
Public Overridable Property FractionRenderOnly As Boolean
'使用法
 
Dim instance As NumberCellType
Dim value As Boolean
 
instance.FractionRenderOnly = value
 
value = instance.FractionRenderOnly
public virtual bool FractionRenderOnly {get; set;}

プロパティ値

Boolean:編集モードで分数を許可する場合はTrue、それ以外の場合はFalse
次のサンプルコードは、FractionRenderOnlyプロパティを設定します。
FarPoint.Win.Spread.CellType.NumberCellType n = new FarPoint.Win.Spread.CellType.NumberCellType();
n.FractionMode = true;            
n.DecimalPlaces = 2;
n.FractionDenominatorDigits = 2;
n.FractionCustomFormat = "# ??/??";
n.FractionRenderOnly = true;
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = n;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 5.004;
Dim n As New FarPoint.Win.Spread.CellType.NumberCellType()
n.FractionMode = True        
n.DecimalPlaces = 2
n.FractionDenominatorDigits = 2
n.FractionCustomFormat = "# ??/??"
n.FractionRenderOnly = True
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths
fpSpread1.ActiveSheet.Cells(0, 0).CellType = n
fpSpread1.ActiveSheet.Cells(0, 0).Value = 5.004
参照

NumberCellType クラス
NumberCellType メンバ

 

 


Copyright © 2004 GrapeCity inc.