Spread Windows Forms 10.0 Product Documentation
ResetImeMode Method (NamedStyle)
Example 


Resets the IME mode for the style to the default setting (not set).
Syntax
'Declaration
 
Public Overrides Sub ResetImeMode() 
'Usage
 
Dim instance As NamedStyle
 
instance.ResetImeMode()
public override void ResetImeMode()
Example
This example uses the ResetImeMode method.
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()
Requirements

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

See Also

Reference

NamedStyle Class
NamedStyle Members

 

 


Copyright © GrapeCity, inc. All rights reserved.