Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
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.
 
 ScheduleDiagramColorAttribute (byte A, byte R, byte G, byte B)
 Alternate way to provide the color.
 

Properties

Color Color [get]
 Color definition.
 

Detailed Description

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

Definition at line 574 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 584 of file TaskInterfaces.cs.

585 {
586 var pd = typeof(Colors).GetProperty(myColor);
587 Color = (pd?.GetValue(null) as Color?).GetValueOrDefault();
588 }

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 597 of file TaskInterfaces.cs.

598 {
599 Color = Color.FromArgb(A, R, G, B);
600 }

References AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color.

Property Documentation

◆ Color

Color AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color
get

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