blockly > comments > CommentBarButton > getSize

comments.CommentBarButton.getSize() 方法

以工作區座標傳回這個按鈕的維度。

Signature:

getSize(includeMargin?: boolean): Rect;

參數

參數 類型 說明
includeMargin 布林值 (選用):設為 true 時,計算大小時會納入邊界。

傳回:

Rect

這個按鈕的大小。