跳转到主要内容
必须套索之后调用该接口,否则会调用失败。建议在点击套索工具栏按钮后进入的插件界面调用该接口。
static getLassoText(): Promise<APIResponse<TextBox[]>>;
返回

示例

import { PluginNoteAPI } from 'sn-plugin-lib';

/**
 * 获取套索文本框列表的示例。
 */
export async function exampleGetLassoText() {
  const res = await PluginNoteAPI.getLassoText();
  if (!res.success) {
    throw new Error(res.error?.message ?? 'getLassoText 调用失败');
  }
  return res.result;
}