TimeAwareScrollEnabled (Property)

Applies To:

XAxisLabel (Object)

Description:

Enables you to select the number of pages or a date/time values to display when scrolling through a fixed number of intervals for a Time Aware axis. This is like selecting the “Display” checkbox in the “Scrolling” region in the Label Axis tab of General Properties

The Default value of the property is false, even for a chart which does not have the Time Aware feature enabled (the TimeAwareOn option is checked but displays the text “Time Aware(inactive now)”). The property persists with the document/application. When time aware inactive, the non time aware controls are displayed in "Scrolling" region of the dialog box. These controls correspond to other Object Model properties, in particular MaximumBarsEnable and MaximumBarsDisplayed.

Action:

Read-write, Boolean

Example:

This example shows how to enable the scrolling for the Time Aware axis. It also shows how to enable the Time Aware axis and set the scrolling interval type to a maximum of five days.

ActiveDocument.Sections["UnitProdLineChart"].LabelsAxis.XAxis.TimeAwareOn = true
ActiveDocument.Sections["UnitProdLineChart"].LabelsAxis.XAxis.TimeAwareScrollEnabled = true
ActiveDocument.Sections["UnitProdLineChart"].LabelsAxis.XAxis.TimeAwareScrollIntervalType = bqTimeAwareDay
ActiveDocument.Sections["UnitProdLineChart"].LabelsAxis.XAxis.TimeAwareScrollMaxDisplayed = 5