Timeline

Timeline class

Summary description of Timeline View Due to MS Excel, Excel 2003 does not support Timeline

class Timeline;

Properties

PropertyTypeDescription
showHeaderbooleanIndicates whether to display the header of this timeline.
showSelectionLabelbooleanIndicates whether to display the selction label.
showTimeLevelbooleanIndicates whether to display the drop-down selection box of the time level.
showHorizontalScrollbarbooleanIndicates whether to display the horizontal scroll bar.
startDateDateGets and sets the start date of the timespan scrolling position of this Timeline.
currentLevelTimelineLevelTypeThe current time level of the Timeline.
selectionLevelTimelineLevelTypeGets and sets the time level at which the current selection was made for the Timeline.
captionstringGets or sets the caption of this Timeline.
shapeTimelineShapeReadonly. Returns the TimelineShape object associated with this Timeline.
namestringReturns or sets the name of the specified Timeline
leftPixelnumberReturns or sets the horizontal offset of timeline shape from its left column, in pixels.
topPixelnumberReturns or sets the vertical offset of timeline shape from its top row, in pixels.
widthPixelnumberReturns or sets the width of the specified timeline, in pixels.
heightPixelnumberReturns or sets the height of the specified timeline, in pixels.

Methods

MethodDescription
getSelectedDateTimeRange()Gets the selected range of date time.
select(Date, Date, boolean)Select item between the date time.

showHeader

Indicates whether to display the header of this timeline.

showHeader : boolean;

showSelectionLabel

Indicates whether to display the selction label.

showSelectionLabel : boolean;

showTimeLevel

Indicates whether to display the drop-down selection box of the time level.

showTimeLevel : boolean;

showHorizontalScrollbar

Indicates whether to display the horizontal scroll bar.

showHorizontalScrollbar : boolean;

startDate

Gets and sets the start date of the timespan scrolling position of this Timeline.

startDate : Date;

currentLevel

The current time level of the Timeline.

currentLevel : TimelineLevelType;

selectionLevel

Gets and sets the time level at which the current selection was made for the Timeline.

selectionLevel : TimelineLevelType;

caption

Gets or sets the caption of this Timeline.

caption : string;

shape

Readonly. Returns the TimelineShape object associated with this Timeline.

shape : TimelineShape;

name

Returns or sets the name of the specified Timeline

name : string;

leftPixel

Returns or sets the horizontal offset of timeline shape from its left column, in pixels.

leftPixel : number;

Remarks

NOTE: This member is now obsolete. Instead, please use Shape.Left property. This property will be removed 12 months later since May 2025. Aspose apologizes for any inconvenience you may have experienced.

topPixel

Returns or sets the vertical offset of timeline shape from its top row, in pixels.

topPixel : number;

Remarks

NOTE: This member is now obsolete. Instead, please use Shape.Top property. This property will be removed 12 months later since May 2025. Aspose apologizes for any inconvenience you may have experienced.

widthPixel

Returns or sets the width of the specified timeline, in pixels.

widthPixel : number;

Remarks

NOTE: This member is now obsolete. Instead, please use Shape.Width property. This property will be removed 12 months later since May 2025. Aspose apologizes for any inconvenience you may have experienced.

heightPixel

Returns or sets the height of the specified timeline, in pixels.

heightPixel : number;

Remarks

NOTE: This member is now obsolete. Instead, please use Shape.Height property. This property will be removed 12 months later since May 2025. Aspose apologizes for any inconvenience you may have experienced.

getSelectedDateTimeRange()

Gets the selected range of date time.

getSelectedDateTimeRange() : Date[];

Returns

Date[]

select(Date, Date, boolean)

Select item between the date time.

select(start: Date, end: Date, calculate: boolean) : void;

Parameters:

ParameterTypeDescription
startDateThe start date time
endDateThe end date time
calculatebooleanIndicates whether to calculate relative pivot tables

Remarks

Timeline.CurrentLevel must be set before calling this method. If this method is called, Timeline.SelectionLevel will be Timeline.CurrentLevel.