GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : AutoConvert Property |
'Declaration Public Property AutoConvert As Boolean
'Usage Dim instance As GcTextBoxCellType Dim value As Boolean instance.AutoConvert = value value = instance.AutoConvert
public bool AutoConvert {get; set;}
If the AutoConvert property is set to true, all convertible characters are automatically converted accordingly to the input mask. For example, if the input mask is "A", hitting a lower case character causes the control to automatically convert the character to upper case.
If SBCS is entered in a DBCS mask input, the entered character is automatically converted to DBCS. Also a DBCS space is automatically converted to a SBCS space when the control allows only SBCS.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType(); datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide; datecell.ExcelExportFormat = "MM/dd/yy"; fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell; GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType(); textcell.AutoConvert = true; textcell.FormatString = "A"; fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType() datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide datecell.ExcelExportFormat = "MM/dd/yy" FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType() textcell.AutoConvert = True textcell.FormatString = "A" FpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10