名前空間一覧 > GrapeCity.Web.Input.IMExtenders 名前空間 > ShortcutAction クラス : ClientFunction プロパティ |
Imports GrapeCity.Web.Input.IMExtenders Imports GrapeCity.Web.Input.Core Dim sAction As New ShortcutAction sAction.ClientFunction = "ChangeColor" GcShortcut1.GetShortcuts(GcTextBox1).Add(Keys.C Or Keys.Shift, sAction)
using GrapeCity.Web.Input.IMExtenders; using GrapeCity.Web.Input.Core; ShortcutAction sAction = new ShortcutAction(); sAction.ClientFunction = "ChangeColor"; GcShortcut1.GetShortcuts(GcTextBox1).Add(Keys.C | Keys.Shift, sAction);
function ChangeColor() { FindIMControl("GcTextBox1").SetBackColor("yellow"); FindIMControl("GcTextBox1").SetForeColor("red"); }