FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DoubleCellType.EditModeSettings Class : NumberFormat Property |
'Declaration Public Property NumberFormat As NumberFormatInfo
'Usage Dim instance As DoubleCellType.EditModeSettings Dim value As NumberFormatInfo instance.NumberFormat = value value = instance.NumberFormat
public NumberFormatInfo NumberFormat {get; set;}
protected void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack) return; FarPoint.Web.Spread.DoubleCellType dbct = new FarPoint.Web.Spread.DoubleCellType(); dbct.NumberFormat = new System.Globalization.NumberFormatInfo(); dbct.NumberFormat.NumberDecimalDigits = 4; dbct.NumberFormat.NumberDecimalSeparator = "."; dbct.EditMode.NumberFormat = new System.Globalization.NumberFormatInfo(); dbct.EditMode.NumberFormat.NumberDecimalSeparator = "?"; dbct.EditMode.DecimalDigits = 5; FpSpread1.Sheets[0].Columns[1].CellType = dbct; }
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If (IsPostBack) Then Return End If Dim dbct As New FarPoint.Web.Spread.DoubleCellType() dbct.NumberFormat = New System.Globalization.NumberFormatInfo() dbct.NumberFormat.NumberDecimalDigits = 4 dbct.NumberFormat.NumberDecimalSeparator = "." dbct.EditMode.NumberFormat = New System.Globalization.NumberFormatInfo() dbct.EditMode.NumberFormat.NumberDecimalSeparator = "?" dbct.EditMode.DecimalDigits = 5 FpSpread1.Sheets(0).Columns(1).CellType = dbct End Sub
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional