Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > styleName_
Block.styleName_ property
Name of the block style.
Signature:
protected styleName_: string;
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\u003e\u003ccode\u003estyleName_\u003c/code\u003e is a protected property of the \u003ccode\u003eBlock\u003c/code\u003e class in Blockly that stores the name of the block's style as a string.\u003c/p\u003e\n"],["\u003cp\u003eThis property is used to define the visual appearance of a block, determining its color, shape, and other stylistic elements.\u003c/p\u003e\n"]]],["The `Block.styleName_` property, a string, represents the name of a specific block style within the Blockly library. This property is designated as `protected`, indicating it's intended for internal use within the Block class or its subclasses. Its core function is to store the designated style name applied to a particular block.\n"],null,["[blockly](./blockly.md) \\\u003e [Block](./blockly.block_class.md) \\\u003e [styleName_](./blockly.block_class.stylename__property.md)\n\nBlock.styleName_ property\n-------------------------\n\nName of the block style.\n\n**Signature:** \n\n protected styleName_: string;"]]