Stay organized with collections
Save and categorize content based on your preferences.
blockly > Xml > loadWorkspaceComment
Deserializes the given comment state into the given workspace.
Signature:
export declare function loadWorkspaceComment(elem: Element, workspace: Workspace): WorkspaceComment;
Parameters
Parameter |
Type |
Description |
elem |
Element |
|
workspace |
Workspace |
|
Returns:
WorkspaceComment
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\u003eXml.loadWorkspaceComment()\u003c/code\u003e function deserializes a comment's state from an XML element and integrates it into a specified workspace.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an XML element representing the comment and the target workspace as input.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a \u003ccode\u003eWorkspaceComment\u003c/code\u003e object representing the deserialized comment within the workspace.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Xml](./blockly.xml_namespace.md) \\\u003e [loadWorkspaceComment](./blockly.xml_namespace.loadworkspacecomment_1_function.md)\n\nXml.loadWorkspaceComment() function\n-----------------------------------\n\nDeserializes the given comment state into the given workspace.\n\n**Signature:** \n\n export declare function loadWorkspaceComment(elem: Element, workspace: Workspace): WorkspaceComment;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|-------------------------------------------|-------------|\n| elem | Element | |\n| workspace | [Workspace](./blockly.workspace_class.md) | |\n\n**Returns:**\n\n[WorkspaceComment](./blockly.comments_namespace.workspacecomment_class.md)"]]