blockly > WorkspaceComment > (建構函式)

WorkspaceComment.(constructor)

建構 WorkspaceComment 類別的新執行個體

Signature:

constructor(workspace: Workspace, content: string, height: number, width: number, opt_id?: string);

參數

參數 類型 說明
工作區 Workspace 區塊的工作區。
內容 字串 這個工作區註解的內容。
height 號碼 留言的高度。
width 號碼 留言的寬度。
opt_id 字串 (選填) 選填 ID。請使用這個 ID (如有提供);否則建立新的 ID。