Spread Windows Forms 12.0 Product Documentation
RoundPattern Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : RoundPattern Property
Gets or sets the round pattern of the value.
Syntax
'Declaration
 
Public Property RoundPattern As RoundPattern
'Usage
 
Dim instance As GcNumberCellType
Dim value As RoundPattern
 
instance.RoundPattern = value
 
value = instance.RoundPattern
public RoundPattern RoundPattern {get; set;}

Property Value

The RoundPattern value that indicates the round pattern of the value.
Example
This example rounds the value.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.Fields.SetFields("###.#", "", "", "-", "");
ncell1.RoundPattern = GrapeCity.Win.Spread.InputMan.CellType.RoundPattern.Ceiling;            
fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
fpSpread1.ActiveSheet.Cells[1, 1].Value = 12.31;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.Fields.SetFields("###.#", "", "", "-", "")
ncell1.RoundPattern = GrapeCity.Win.Spread.InputMan.CellType.RoundPattern.Ceiling
fpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
fpSpread1.ActiveSheet.Cells(1, 1).Value = 12.31
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members