public void SetTextCell2() { TextCellType textCellType1 = new TextCellType(); textCellType1.IsInputMethodEnabled = true; //Set IME mode to 'Full-width with Katakana' textCellType1.ImeConversionMode = System.Windows.Input.ImeConversionModeValues.Katakana | System.Windows.Input.ImeConversionModeValues.Native | System.Windows.Input.ImeConversionModeValues.FullShape; //Set IME Sentence Mode to BiasForNames textCellType1.ImeSentenceMode = System.Windows.Input.ImeSentenceModeValues.PluralClause; textCellType1.ImeState = System.Windows.Input.InputMethodState.On; this._gcSpreadGrid1[0, 0].CellType = textCellType1; }
Public Sub SetTextCell2() Dim textCellType1 As New TextCellType() textCellType1.IsInputMethodEnabled = True 'Set IME mode to 'Full-width with Katakana' textCellType1.ImeConversionMode = System.Windows.Input.ImeConversionModeValues.Katakana Or System.Windows.Input.ImeConversionModeValues.Native Or System.Windows.Input.ImeConversionModeValues.FullShape 'Set IME Sentence Mode to BiasForNames textCellType1.ImeSentenceMode = System.Windows.Input.ImeSentenceModeValues.PluralClause textCellType1.ImeState = System.Windows.Input.InputMethodState.[On] Me._gcSpreadGrid1(0, 0).CellType = textCellType1 End Sub