Chronos Plugins 5.4.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 567 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 577 of file TaskInterfaces.cs.

578 {
579 var pd = typeof(Colors).GetProperty(myColor);
580 Color = (pd?.GetValue(null) as Color?).GetValueOrDefault();
581 }

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

591 {
592 Color = Color.FromArgb(A, R, G, B);
593 }

References AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color.

Property Documentation

◆ Color

Color AxelSemrau.Chronos.Plugin.ScheduleDiagramColorAttribute.Color
get

Color definition.

Definition at line 572 of file TaskInterfaces.cs.

572{ get; }

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


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