TimeLineHelper

TimeLineHelper class

TimeLineHelper to set property of timeline shape.

Constructors

NameDescription
TimeLineHelperTimeLineHelper.

Properties

NameTypeDescription
FiscalStartDateTimeFirst day of fiscal year
TimePeriodStartDateTimeTime Period for start of timeline shape
TimePeriodFinishDateTimeTime Period for finish of timeline shape
TimeScaleintscale of timeline shape
ArrowHeadintArrowHead of timeline shape
BeginWeekintBegin week of timeline shape
TimeLineTypeintBegin week of timeline shape
IsDisplayBEbooleanwhether to display Begin and End dates on timeline
IsDisplayIntmbooleanwhether to display interim date/time ticks on timeline
IsDisplayIntmDatesbooleanwhether to display interim dates on interim ticks
IsAutoUpdatebooleanwhether to update data for markers (milestones, intervals) as they are moved on timeline
DateFormatForIntmintDateFormat for Intm of timeline shape Value Format String 0 dddd, yyyy-M-d 1 yyyy-MM-dd 2 yy-MMM-d 3 yyyy/M/d 4 yy-MMM.-
DateFormatStringForIntmStringDateFormat String for Intm of timeline shape
DateFormatForBEintDateFormat for start and finish of timeline shape Value Format String 0 dddd, yyyy-M-d 1 yyyy-MM-dd 2 yy-MMM-d 3 yyyy/M/
DateFormatStringForBEStringDateFormat String for start and finish of timeline shape

Methods

NameDescription
refreshTimeLineRefresh time of timeline shapes
getWeekEndgetweekstart
getDoubleStringFromDateTimeConvert the date time to double value.

TimeLineHelper(shape)

TimeLineHelper.

TimeLineHelper.FiscalStart property

First day of fiscal year

Type: DateTime

TimeLineHelper.TimePeriodStart property

Time Period for start of timeline shape

Type: DateTime

TimeLineHelper.TimePeriodFinish property

Time Period for finish of timeline shape

Type: DateTime

TimeLineHelper.TimeScale property

scale of timeline shape

Type: int

TimeLineHelper.ArrowHead property

ArrowHead of timeline shape

Type: int

TimeLineHelper.BeginWeek property

Begin week of timeline shape

Type: int

TimeLineHelper.TimeLineType property

Begin week of timeline shape

Type: int

TimeLineHelper.IsDisplayBE property

whether to display Begin and End dates on timeline

Type: boolean

TimeLineHelper.IsDisplayIntm property

whether to display interim date/time ticks on timeline

Type: boolean

TimeLineHelper.IsDisplayIntmDates property

whether to display interim dates on interim ticks

Type: boolean

TimeLineHelper.IsAutoUpdate property

whether to update data for markers (milestones, intervals) as they are moved on timeline

Type: boolean

TimeLineHelper.DateFormatForIntm property

DateFormat for Intm of timeline shape Value Format String 0 dddd, yyyy-M-d 1 yyyy-MM-dd 2 yy-MMM-d 3 yyyy/M/d 4 yy-MMM.-d 5 d MMMM yyyy 6 yy-M 7 MMM-yy 8 MMMM d, yyyy 9 MMM d, yyyy 10 M-d-yy 11 M-d 12 d MMMM, yyyy 13 d MMM, yyyy 14 d-M-yy 15 d-M 16 yy-M-d 17 yyyy-M-d 18 M-yy 19 M-yyyy 20 MMMM yyyy 21 MMMM yy 22 MMM yyyy 23 MMM yy 24 yy 25 yyyy 26 d 27 MMMM 28 MMM 29 M 30 MM/dd/yyyy

Type: int

TimeLineHelper.DateFormatStringForIntm property

DateFormat String for Intm of timeline shape

Type: String

TimeLineHelper.DateFormatForBE property

DateFormat for start and finish of timeline shape Value Format String 0 dddd, yyyy-M-d 1 yyyy-MM-dd 2 yy-MMM-d 3 yyyy/M/d 4 yy-MMM.-d 5 d MMMM yyyy 6 yy-M 7 MMM-yy 8 MMMM d, yyyy 9 MMM d, yyyy 10 M-d-yy 11 M-d 12 d MMMM, yyyy 13 d MMM, yyyy 14 d-M-yy 15 d-M 16 yy-M-d 17 yyyy-M-d 18 M-yy 19 M-yyyy 20 MMMM yyyy 21 MMMM yy 22 MMM yyyy 23 MMM yy 24 yy 25 yyyy 26 d 27 MMMM 28 MMM 29 M 30 MM/dd/yyyy

Type: int

TimeLineHelper.DateFormatStringForBE property

DateFormat String for start and finish of timeline shape

Type: String

refreshTimeLine()

Refresh time of timeline shapes

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

diagram = new aspose.diagram.Diagram("DrawingTimeLine.vsdx");

shapeid = 1;
// Get timeline shape
timeline = diagram.getPages().getPage("Page-1").getShapes().getShape(shapeid);

// Initialize TimeLineHlper object
timelineHelper = new aspose.diagram.TimeLineHelper(timeline);

// Set start time
timelineHelper.setTimePeriodStart(new aspose.diagram.DateTime(2014, 12, 21));
// Set end time
timelineHelper.setTimePeriodFinish(new aspose.diagram.DateTime(2015, 2, 19));

// Set date format
timelineHelper.setDateFormatForBE(21);

// revive milestones on the timeline
timelineHelper.refreshTimeLine();

diagram.save("out-RefreshTimeLine.vsdx", aspose.diagram.SaveFileFormat.VSDX);

getWeekEnd(startDate, weekStart)

getweekstart

ParameterTypeDescription
startDateDateTime
weekStartint(0sunday 1monday 2 3 4 5 6)

getDoubleStringFromDateTime(dateTime)

Convert the date time to double value.

ParameterTypeDescription
dateTimeDateTimeThe date time.