Class Utils
public static class Utils
- Inheritance
-
Utils
- Inherited Members
Methods
CheckMenuItem(int, bool)
if a menu item (for your plugin's drop-down menu) has a checkmark, check/uncheck it, and call its associated funcId.
public static void CheckMenuItem(int funcId, bool isChecked)
Parameters
funcId
intthe index of the menu item of interest
isChecked
boolwhether the menu item should be checked
CheckMenuItemToggle(int, ref bool)
if a menu item (for your plugin's drop-down menu) has a checkmark:
- if it's checked, uncheck it
- if it's unchecked, check it. Either way, call its associated funcId.
public static void CheckMenuItemToggle(int funcId, ref bool isCurrentlyChecked)
Parameters
funcId
intthe index of the menu item of interest
isCurrentlyChecked
boolwhether the menu item is currently checked
GetCurrentScintilla()
public static IntPtr GetCurrentScintilla()
Returns
GetGatewayFactory()
public static Func<IScintillaGateway> GetGatewayFactory()
Returns
MakeSeparator()
public static int MakeSeparator()
Returns
SetCommand(string, PluginFunc)
public static int SetCommand(string commandName, PluginFunc functionPointer)
Parameters
commandName
stringfunctionPointer
PluginFunc
Returns
SetCommand(string, PluginFunc, ShortcutKey)
public static int SetCommand(string commandName, PluginFunc functionPointer, ShortcutKey shortcut)
Parameters
commandName
stringfunctionPointer
PluginFuncshortcut
ShortcutKey
Returns
SetCommand(string, PluginFunc, ShortcutKey, bool)
public static int SetCommand(string commandName, PluginFunc functionPointer, ShortcutKey shortcut, bool checkOnInit)
Parameters
commandName
stringfunctionPointer
PluginFuncshortcut
ShortcutKeycheckOnInit
bool