Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Color Queries

Color queries can only be used to retrieve arguments for the SetPenColor and SetFillColor commands. These queries can be used in place of the arguments.

getUserFillColor()
getUserBorderColor()
getUserFontColor()
getUserPenSize()

 shape main

 {

         setfillcolor(getuserbordercolor());

         setpencolor(getuserfillcolor());

 

         rectangle(0,0,100,100);

 }