SPREAD for WPF 3.0J - GcSpreadSheet
Decimal プロパティ

GrapeCity.Wpf.SpreadSheet.CellType アセンブリ > GrapeCity.Wpf.SpreadSheet.CellType.Editors 名前空間 > GcNumber クラス : Decimal プロパティ
現在の Value の小数部の値を取得します。
シンタックス
'宣言
 
Public ReadOnly Property Decimal As System.Nullable(Of Decimal)
public System.Nullable<decimal> Decimal {get;}

プロパティ値

入力された数値の小数部を示す null 許容の 10 進数値。
解説

このプロパティを使用して、実行時に現在の値の小数部を取得できます。また、Integer プロパティを使用して整数部を取得することもできます。例:

number1.Value = -1234.120
この例では、Decimal は -0.12 を返し、Integer プロパティは -1234 を返します。

number1.Value = 1234
この例では、Decimal は0を返し、Integer プロパティは 1234 を返します。

基になる値が null 参照 (Visual Basicでは Nothing) に設定されている場合、このプロパティは null 参照 (Visual Basicでは Nothing) を返します。

参照

GcNumber クラス
GcNumber メンバ
GcNumber クラス
Value プロパティ
Integer プロパティ