bdeGetPortFrameColor

Returns the frame color of a given port.

Syntax

frameColor = bdeGetPortFrameColor(port)

Inputs

port
The port to get the frame color of.
Type: hwdcConnectionPoint

Outputs

color
The frame color of the port.
Type: hwt::Color

Examples

Get the frame color of a given port:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
          portX = portList{[1, 1]};
          frameColor = bdeGetPortBackgroundColor(portX);
        

          
            frameColor = struct [
            alpha: 255
            blue: 64
            green: 64
            red: 64
            ]