GrapeCity SPREAD for Windows Forms 11.0J
FractionDenominatorPrecision 列挙体


分数として表示する数値型セルの、分母の精度を指定します。
構文
'Declaration
 
Public Enum FractionDenominatorPrecision 
   Inherits System.Enum
'使用法
 
Dim instance As FractionDenominatorPrecision
public enum FractionDenominatorPrecision : System.Enum 
メンバ
メンバ説明
Auto精度を自動的に設定します。
Custom精度をカスタム値に設定します。
Eighths精度を1/8に設定します。
Halves精度を1/2に設定します。
Hundredths精度を1/100に設定します。
Quarters精度を1/4に設定します。
Sixteenths精度を1/16に設定します。
SixtyFourths精度を1/64に設定します。
Tenths精度を1/10に設定します。
ThirtySeconds精度を1/32に設定します。
Thousandths精度を1/1000に設定します。
次のサンプルコードは、数値型セルを作成します。
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
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.FractionDenominatorPrecision

参照

FarPoint.Win.Spread.CellType 名前空間

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.