EWSoftware / PDI

A Personal Data Interchange (PDI) library that implements the vCard (RFC 2426), vCalendar, and iCalendar (RFC 2445) specifications including recurrence pattern generation
Microsoft Public License
64 stars 26 forks source link

Setting the By... properties of a Recurrence after initialisation #18

Closed micycle1 closed 3 years ago

micycle1 commented 3 years ago

Is it possible to set the By.. (e.g. ByHour, ByMinute) of a Recurrence once it's initialised?

The doc even says "used to modify the rule" but I can only see the getters for these members -- what about setters for them? image

The only way I can find right now to set these at all is in the via RRule string at initialisation, e.g: new Recurrence(RRULE:FREQ=WEEKLY;COUNT=30;INTERVAL=1;WKST=MO;BYHOUR=8,9;BYMINUTE=5);

EWSoftware commented 3 years ago

They are collection instances. You can add/remove entries as needed. You can also clear them and add a new range of new entries. Each property's documentation shows an example of using AddRange (ByDay)

micycle1 commented 3 years ago

Timely response. Thanks.