Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Apps, Widgets, and Controls

AlarmColor​.UnAck​.ForeGround property

  • Last UpdatedSep 20, 2024
  • 1 minute read

The AlarmColor.UnAck.ForeGround property is an array of read-write integer properties that get or set the text colors of all unacknowledged alarm records.

Index

Purpose

0

Sets the text color of all unacknowledged alarm records in all priority ranges.

1

Gets or sets the text color of unacknowledged alarm records in the priority range 1 to AlarmColor.Range[1].

2

Gets or sets the text color of unacknowledged alarm records in the priority range AlarmColor.Range[1] to AlarmColor.Range[2].

3

Gets or sets the text color of unacknowledged alarm records in the priority range AlarmColor.Range[2] to AlarmColor.Range[3].

4

Gets or sets the text color of unacknowledged alarm records in the priority range AlarmColor.Range[3] to 999.

Syntax

Color = AlarmClient.AlarmColor.UnAck.ForeGround[n];

AlarmClient.AlarmColor.UnAck.ForeGround[n] = Color;

Parameters

n

Index from 0 to 4.

Color

Color of text.

Example

AlarmClient1.AlarmColor.UnAck.ForeGround[0] = Color.Blue;

AlarmClient1.AlarmColor.UnAck.ForeGround[1] = Color.ARGB(223,113,76);

AlarmClient1.AlarmColor.UnAck.ForeGround[2] = Color.Yellow;

AlarmClient1.AlarmColor.UnAck.ForeGround[3] = Color.Green;

AlarmClient1.AlarmColor.UnAck.ForeGround[4] = Color.White;

Remarks

Color is a .NET Framework data type. You can use various Color methods to set the color, such as a predefined color name, FromARGB(), FromKnownColor(), and FromName().

For a list of the .NET color names and the hexadecimal codes, see .NET colors

For more information on the color methods, see the online Microsoft documentation for .NET Framework Development.

In This Topic
TitleResults for “How to create a CRG?”Also Available in