プログラムエディター
プログラムエディター操作に関するAPI群です。
// Retrieves the API instance.
IRCXProgramEditorAPI api = Main.GetAPI<IRCXProgramEditorAPI>()!;
// List of program editors currently opened in Epson RC+ 8.0.
var programEditors = api.ProgramEditors;
if (programEditors == null || programEditors.Count() <= 0) return;
var editor = programEditors.ElementAt(0)!;
// Retrieves the content of the specified line number.
var (ret, content) = await editor.GetLineContentAsync(1);
// Sets a breakpoint at the specified line number.
ret = await editor.SetBreakpointAsync(1);
// Clears the breakpoint set at the specified line number.
ret = await editor.ClearBreakpointAsync(1);
// Clears all breakpoints set in the program editor.
ret = await editor.ClearAllBreakpointsAsync();