Timeline
Timeline class
Summary description of Timeline View Due to MS Excel, Excel 2003 does not support Timeline
class Timeline;
Properties
| Property | Type | Description |
|---|---|---|
| showHeader | boolean | Indicates whether to display the header of this timeline. |
| showSelectionLabel | boolean | Indicates whether to display the selction label. |
| showTimeLevel | boolean | Indicates whether to display the drop-down selection box of the time level. |
| showHorizontalScrollbar | boolean | Indicates whether to display the horizontal scroll bar. |
| startDate | Date | Gets and sets the start date of the timespan scrolling position of this Timeline. |
| currentLevel | TimelineLevelType | The current time level of the Timeline. |
| selectionLevel | TimelineLevelType | Gets and sets the time level at which the current selection was made for the Timeline. |
| caption | string | Gets or sets the caption of this Timeline. |
| shape | TimelineShape | Readonly. Returns the TimelineShape object associated with this Timeline. |
| name | string | Returns or sets the name of the specified Timeline |
| leftPixel | number | Returns or sets the horizontal offset of timeline shape from its left column, in pixels. |
| topPixel | number | Returns or sets the vertical offset of timeline shape from its top row, in pixels. |
| widthPixel | number | Returns or sets the width of the specified timeline, in pixels. |
| heightPixel | number | Returns or sets the height of the specified timeline, in pixels. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| start | Date | The start date time |
| end | Date | The end date time |
| calculate | boolean | Indicates 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.