blockly > BlockSvg > style
BlockSvg.style property
Signature:
style: BlockStyle;
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["`BlockSvg.style` is a property that holds the visual style information for a block, determining its appearance."],["The style is an instance of the `Blockly.BlockStyle` class, which contains various style properties like colors, borders, and shadows."]]],["The `BlockSvg.style` property, of type `BlockStyle`, is defined within the Blockly library. It's accessible through the `BlockSvg` class and is located in the `blockly.blocksvg_class.style_property.md` file. This property dictates the visual styling of a block within the Blockly environment, using the `BlockStyle` object to define those style elements.\n"]]