ClassesBlockSvgblockly.blocksvg_class.setstyle_methodOn this pageblockly > BlockSvg > setStyle BlockSvg.setStyle() method Set the style and colour values of a block. Signature: setStyle(blockStyleName: string): void; Parameters ParameterTypeDescriptionblockStyleNamestringName of the block style. Returns: void Exceptions {Error} if the block style does not exist.