blockly > comments > WorkspaceComment
comments.WorkspaceComment class
Signature:
export declare class WorkspaceComment
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs the comment. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| boolean | Whether this comment has been disposed or not. | |
| boolean | Whether this comment is being disposed or not. | |
| string | The unique identifier for this comment. | |
| The location of the comment in workspace coordinates. | ||
|
Methods
Method | Modifiers | Description |
|---|---|---|
Disposes of this comment. | ||
Returns the position of the comment in workspace coordinates. | ||
Returns the comment's size in workspace units. | ||
Returns the text of the comment. | ||
Returns whether the comment is collapsed or not. | ||
Returns true if this comment view is currently being disposed or has already been disposed. | ||
Returns whether the comment is deletable or not, respecting whether the workspace is read-only. | ||
Returns whether the comment has been disposed or not. | ||
Returns whether the comment is editable or not, respecting whether the workspace is read-only. | ||
Returns whether the comment is movable or not, respecting whether the workspace is read-only. | ||
Returns whether the comment is deletable or not, only examining its own state and ignoring the state of the workspace. | ||
Returns whether the comment is editable or not, only examining its own state and ignoring the state of the workspace. | ||
Returns whether the comment is movable or not, only examining its own state and ignoring the state of the workspace. | ||
Moves the comment to the given location in workspace coordinates. | ||
Sets whether the comment is collapsed or not. | ||
Sets whether the comment is deletable or not. | ||
Sets whether the comment is editable or not. | ||
Sets whether the comment is movable or not. | ||
Sets the comment's size in workspace units. | ||
Sets the text of the comment. |