GrapeCity SPREAD for WPF 2.0J
ImeState プロパティ (TextCellType)

指定したセルの入力メソッドの状態を取得または設定します。
構文
'Declaration
 
Public Property ImeState As InputMethodState
public InputMethodState ImeState {get; set;}

プロパティ値

指定したセルの入力メソッドの状態を指定する System.Windows.Input.InputMethodState のメンバ。
次のサンプルはTextCellTypeを作成しIMEに関連するプロパティを設定します。
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
参照

TextCellType クラス
TextCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.