search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Separator not accepting more than 2 arguments

Asked by Vivek
9 years ago.

Hi Dan,

I tried to use the Separator option explained in Daypilot scheduler http://www.daypilot.org/scheduler-separators.html. While coding for custom separation, it is taking only the day and color property.

But, i need opacity property too. When i code for opacity, it gives an error as "Daypilot Scheduler1 wont carry 5 arguments". Plz do revert me back in this issue as this is very important for me.

Answer posted by Dan Letecky [DayPilot]
9 years ago.

Please check for possible typos, the method is there and this example should work fine:

// Red separator with 50% opacity placed at the current day with width equal to CellWidth, shown above events
DayPilotScheduler1.Separators.Add(DateTime.Today, Color.Red, SeparatorLayer.AboveEvents, DayPilotScheduler1.CellWidth, 50);

You can also create the separator instance manually and then add it to the collection:

Separator s = new Separator();
s.Location = DateTime.Now;
s.Color = Color.Red;
s.Layer = SeparatorLayer.AboveEvents;
s.Opacity = 50;
s.Width = 20;
DayPilotScheduler1.Separators.Add(s);

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.