ISShape.BorderColor

Description

This property returns the border colour of the specified shape encoded as 32 bit integer value, where the first byte contains Red channel, the second byte - Green channel and the third byte - Blue channel.

Syntax

object.BorderColor

Part Attribute Type Description
object Required
The object always implements the ISShape interface

Return Value

uint

Example

Display some information about the specified shape, including its border colour in HEX format.

Dim aShape
Dim aShapeInfo

Set aShape = Form.Controls_("Shape1")
aShapeInfo =_
  "Type Name: " & aShape.TypeName & vbNewLine &_ 
  "ShortName: " & aShape.ShortName & vbNewLine &_
  "Border Color (BGR): #" & HEX(aShape.BorderColor) 
  
Profile.MsgBox(aShapeInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Border Color can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the shape in the controls tree > BorderColor.

Version information

Added in v7.8.0