GrapeCity SPREAD for WPF 2.0J
ImeConversionMode プロパティ (GeneralCellType)

指定したセルの System.Windows.Input.ImeConversionModeValues 値を取得または設定します。
構文
'Declaration
 
Public Property ImeConversionMode As ImeConversionModeValues
public ImeConversionModeValues ImeConversionMode {get; set;}

プロパティ値

指定したセルの変換モードを指定する System.Windows.Input.ImeConversionModeValues のメンバ。
次のサンプルはGeneralCellTypeを作成しIMEに関連するプロパティを設定します。
public void CreateGeneralCell3()
{
    GeneralCellType generalCellType1 = new GeneralCellType();

    generalCellType1.IsInputMethodEnabled = true;

    //Set IME mode to 'Full-width with Katakana'
    generalCellType1.ImeConversionMode = System.Windows.Input.ImeConversionModeValues.Katakana| System.Windows.Input.ImeConversionModeValues.Native| System.Windows.Input.ImeConversionModeValues.FullShape;
    //Set IME Sentence Mode to BiasForNames
    generalCellType1.ImeSentenceMode = System.Windows.Input.ImeSentenceModeValues.PluralClause;
    generalCellType1.ImeState = System.Windows.Input.InputMethodState.On;

    this._gcSpreadGrid1[0, 0].CellType = generalCellType1;
}
Public Sub CreateGeneralCell3()
    Dim generalCellType1 As New GeneralCellType()

    generalCellType1.IsInputMethodEnabled = True

    'Set IME mode to 'Full-width with Katakana'
    generalCellType1.ImeConversionMode = System.Windows.Input.ImeConversionModeValues.Katakana Or System.Windows.Input.ImeConversionModeValues.Native Or System.Windows.Input.ImeConversionModeValues.FullShape
    'Set IME Sentence Mode to BiasForNames
    generalCellType1.ImeSentenceMode = System.Windows.Input.ImeSentenceModeValues.PluralClause
    generalCellType1.ImeState = System.Windows.Input.InputMethodState.[On]

    Me._gcSpreadGrid1(0, 0).CellType = generalCellType1
End Sub
参照

GeneralCellType クラス
GeneralCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.