FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > NumberCellType クラス : FractionMode プロパティ |
'Declaration Public Overridable Property FractionMode As Boolean
'使用法 Dim instance As NumberCellType Dim value As Boolean instance.FractionMode = value value = instance.FractionMode
public virtual bool FractionMode {get; set;}
FarPoint.Win.Spread.CellType.NumberCellType n = new FarPoint.Win.Spread.CellType.NumberCellType(); n.FractionMode = true; n.FractionConvertWholeNumbers = true; n.DecimalPlaces = 2; n.FractionDenominatorDigits = 2; n.FractionCustomFormat = "# ??/??"; n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths; fpSpread1.ActiveSheet.Cells[0, 0].CellType = n; fpSpread1.ActiveSheet.Cells[0, 0].Value = 5.005;
Dim n As New FarPoint.Win.Spread.CellType.NumberCellType n.FractionMode = True n.FractionConvertWholeNumbers = True n.DecimalPlaces = 2 n.FractionDenominatorDigits = 2 n.FractionCustomFormat = "# ??/??" n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths FpSpread1.ActiveSheet.Cells(0, 0).CellType = n FpSpread1.ActiveSheet.Cells(0, 0).Value = 5