blockly > WorkspaceComment > (コンストラクタ)

WorkspaceComment.(constructor)

WorkspaceComment クラスの新しいインスタンスを作成します。

署名:

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

パラメータ

パラメータ 種類 説明
ワークスペース Google Workspace ブロックのワークスペース。
コンテンツ string このワークスペースのコメントの内容。
height 数値 コメントの高さ。
width 数値 コメントの幅。
opt_id string (省略可)ID(省略可)。この ID を指定する場合はこの ID を使用し、指定しない場合は新しい ID を作成します。