bdeSetBlockTextIconColor
Sets the color of the text icon iconName in block.
Syntax
bdeSetBlockTextIconColor(block, iconName, colorname)
bdeSetBlockTextIconColor(block, iconName, red, green, blue, alpha)
Inputs
- block
- The block of which a text icon's color will be set.
- iconName
- The name of the text icon who's color will be set.
- colorname
- The name of the color to change the text icon color to.
- red
- Value to set the iconName's red color value to. Values can range from 0-255.
- green
- Value to set the iconName's green color value to. Values can range from 0-255.
- blue
- Value to set the iconName's blue color value to. Values can range from 0-255.
- alpha
- Transparency to set the iconName's color to. Values can range from 0-255.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockTextIconColor(block, 'text2', 'red');
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockTextIconColor(block, 'text2', 255, 0, 0, 255);