ClassesBlockblockly.block.setstyleOn this pageHome > blockly > Block > setStyle Block.setStyle() method Set the style and colour values of a block. Signature: setStyle(blockStyleName: string): void; Parameters ParameterTypeDescriptionblockStyleNamestringName of the block style. Returns: void