Chronos Plugins  5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute Class Reference

Override the default color that is used to display the task in the schedule diagram. More...

+ Inheritance diagram for AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute:
+ Collaboration diagram for AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute:

Public Member Functions

 ScheduleDiagramColorAttribute (string myColor)
 Set the desired color here. More...
 
 ScheduleDiagramColorAttribute (byte A, byte R, byte G, byte B)
 Alternate way to provide the color. More...
 

Properties

Color Color [get]
 Color definition More...
 

Detailed Description

Override the default color that is used to display the task in the schedule diagram.

Definition at line 538 of file TaskInterfaces.cs.

Constructor & Destructor Documentation

◆ ScheduleDiagramColorAttribute() [1/2]

AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.ScheduleDiagramColorAttribute ( string  myColor)

Set the desired color here.

Parameters
myColorColor name from System.Windows.Media.Colors

Definition at line 548 of file TaskInterfaces.cs.

549  {
550  var pd = typeof(Colors).GetProperty(myColor);
551  Color = (pd?.GetValue(null) as Color?).GetValueOrDefault();
552  }

References AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color.

◆ ScheduleDiagramColorAttribute() [2/2]

AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.ScheduleDiagramColorAttribute ( byte  A,
byte  R,
byte  G,
byte  B 
)

Alternate way to provide the color.

Parameters
Aalpha channel (transparency)
Rred
Ggreen
Bblue

Definition at line 561 of file TaskInterfaces.cs.

562  {
563  Color = Color.FromArgb(A, R, G, B);
564  }

References AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color.

Property Documentation

◆ Color

Color AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color
get

Color definition

Definition at line 543 of file TaskInterfaces.cs.

543 { get; }

Referenced by AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.ScheduleDiagramColorAttribute().


The documentation for this class was generated from the following file: