Skip to main content

Home > blockly > comments > CommentBarButton > getSize

comments.CommentBarButton.getSize() method

Returns the dimensions of this button in workspace coordinates.

Signature:

getSize(includeMargin?: boolean): Rect;

Parameters

ParameterTypeDescription
includeMarginboolean(Optional) True to include the margin when calculating the size.

Returns:

Rect

The size of this button.