MESCIUS SPREAD for Windows Forms 17.0J
ResetImeMode メソッド (NamedStyle)

スタイルのIMEモードをデフォルト設定(未設定状態)にリセットします。
構文
'Declaration
 
Public Overrides Sub ResetImeMode() 
public override void ResetImeMode()
次のサンプルコードは、ResetImeModeメソッドを使用します。
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("StyleData", "DataAreaDefault");
ns.BackColor = Color.LightBlue;
ns.Border = new FarPoint.Win.LineBorder(Color.DarkBlue, 2);
ns.Font = new Font("Comic Sans Serif", 12);
ns.ForeColor = Color.Red;
ns.ImeMode = ImeMode.Alpha;
ns.ImeSentenceMode = FarPoint.Win.ImeSentenceMode.Inherit;
ns.Name = "StyleData";
ns.Parent = "DataAreaDefault";
fpSpread1.NamedStyles.Add(ns);
fpSpread1.ActiveSheet.Cells[0, 0].StyleName = "StyleData";
fpSpread1.ActiveSheet.SetText(0, 0, "NamedStyle");
fpSpread1.ActiveSheet.Columns[0].Width = 120;
fpSpread1.ActiveSheet.Rows[0].Height = 80;

ns.ResetImeMode();
ns.ResetImeSentenceMode();  
Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleData", "DataAreaDefault")
ns.BackColor = Color.LightBlue
ns.Border = New FarPoint.Win.LineBorder(Color.DarkBlue, 2)
ns.Font = New Font("Comic Sans Serif", 12)
ns.ForeColor = Color.Red
ns.ImeMode = ImeMode.Alpha
ns.ImeSentenceMode = FarPoint.Win.ImeSentenceMode.Inherit
ns.Name = "StyleData"
ns.Parent = "DataAreaDefault"
fpSpread1.NamedStyles.Add(ns)
fpSpread1.ActiveSheet.Cells(0, 0).StyleName = "StyleData"
fpSpread1.ActiveSheet.SetText(0, 0, "NamedStyle")
fpSpread1.ActiveSheet.Columns(0).Width = 120
fpSpread1.ActiveSheet.Rows(0).Height = 80
ns.ResetImeMode()
ns.ResetImeSentenceMode()
参照

NamedStyle クラス
NamedStyle メンバ

 

 


© MESCIUS inc. All rights reserved.