Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > CommentIcon > loadState
Applies the given state to this comment.
Signature:
loadState(state: CommentState): void;
Parameters
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eicons.CommentIcon.loadState()\u003c/code\u003e method is used to apply a given state to a comment icon within Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a single parameter of type \u003ccode\u003eCommentState\u003c/code\u003e to define the state to be applied, with no return value.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [CommentIcon](./blockly.icons_namespace.commenticon_class.md) \\\u003e [loadState](./blockly.icons_namespace.commenticon_class.loadstate_1_method.md)\n\nicons.CommentIcon.loadState() method\n\nApplies the given state to this comment.\n\n**Signature:** \n\n loadState(state: CommentState): void;\n\nParameters\n\n| Parameter | Type | Description |\n|-----------|---------------------------------------------------------------------|-------------|\n| state | [CommentState](./blockly.icons_namespace.commentstate_interface.md) | |\n\n**Returns:**\n\nvoid"]]