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.
Type: block
iconName
The name of the text icon who's color will be set.
Type: string
colorname
The name of the color to change the text icon color to.
Type: string
red
Value to set the iconName's red color value to. Values can range from 0-255.
Type: integer
green
Value to set the iconName's green color value to. Values can range from 0-255.
Type: integer
blue
Value to set the iconName's blue color value to. Values can range from 0-255.
Type: integer
alpha
Transparency to set the iconName's color to. Values can range from 0-255.
Type: integer

Examples

Set a block's text icon color to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockTextIconColor(block, 'text2', 'red');
        
Set a block's text icon color to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockTextIconColor(block, 'text2', 255, 0, 0, 255);