C# Класс WinRTXamlToolkit.Controls.DataVisualization.Charting.DateTimeAxis

Наследование: RangeAxis
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ActualIntervalProperty DependencyProperty
ActualMaximumProperty DependencyProperty
ActualMinimumProperty DependencyProperty
IntervalProperty DependencyProperty
IntervalTypeProperty DependencyProperty
MaximumProperty DependencyProperty
MinimumProperty DependencyProperty

Private Properties

Свойство Тип Описание
AlignIntervalStart DateTime
CalculateActualInterval double
CalculateDateTimeInterval double
GetPlotAreaCoordinate UnitValue
IncrementDateTime DateTime
OnIntervalPropertyChanged void
OnIntervalPropertyChanged void
OnIntervalTypePropertyChanged void
OnIntervalTypePropertyChanged void
OnMaximumPropertyChanged void
OnMaximumPropertyChanged void
OnMinimumPropertyChanged void
OnMinimumPropertyChanged void
OverrideDataRange Range

Открытые методы

Метод Описание
CanPlot ( object value ) : bool

Returns a value indicating whether a value can plot.

DateTimeAxis ( ) : System

Instantiates a new instance of the DateTimeAxis2 class.

Защищенные методы

Метод Описание
CreateAxisLabel ( ) : Control

Creates a new instance of the DateTimeAxisLabel class.

GetLabelValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to plot on the axis.

GetMajorAxisValues ( Size availableSize ) : IEnumerable

Returns a sequence of major values.

GetMajorTickMarkValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to create major tick marks for.

GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a value.

GetPlotAreaCoordinate ( object value, double length ) : UnitValue

Returns the plot area coordinate of a value.

GetValueAtPosition ( UnitValue value ) : IComparable

Returns the value range given a plot area coordinate.

OnActualRangeChanged ( Range range ) : void

Updates the typed actual maximum and minimum properties when the actual range changes.

PrepareAxisLabel ( Control label, object dataContext ) : void

Prepares an instance of the DateTimeAxisLabel class by setting its IntervalType property.

Приватные методы

Метод Описание
AlignIntervalStart ( DateTime start, double intervalSize, DateTimeIntervalType type ) : DateTime

Adjusts the beginning of the first interval depending on the type and size.

CalculateActualInterval ( Size availableSize ) : double

Returns the actual interval to use to determine which values are displayed in the axis.

CalculateDateTimeInterval ( DateTime minimum, DateTime maximum, DateTimeIntervalType &type, Size availableSize ) : double
GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a value.

IncrementDateTime ( DateTime date, double interval ) : DateTime

This method accepts a date time and increments it.

OnIntervalPropertyChanged ( ) : void

IntervalProperty property changed handler.

OnIntervalPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IntervalProperty property changed handler.

OnIntervalTypePropertyChanged ( DateTimeIntervalType newValue ) : void

IntervalTypeProperty property changed handler.

OnIntervalTypePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IntervalTypeProperty property changed handler.

OnMaximumPropertyChanged ( DateTime newValue ) : void

MaximumProperty property changed handler.

OnMaximumPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

MaximumProperty property changed handler.

OnMinimumPropertyChanged ( DateTime newValue ) : void

MinimumProperty property changed handler.

OnMinimumPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

MinimumProperty property changed handler.

OverrideDataRange ( Range range ) : Range

Описание методов

CanPlot() публичный Метод

Returns a value indicating whether a value can plot.
public CanPlot ( object value ) : bool
value object The value to plot.
Результат bool

CreateAxisLabel() защищенный Метод

Creates a new instance of the DateTimeAxisLabel class.
protected CreateAxisLabel ( ) : Control
Результат Windows.UI.Xaml.Controls.Control

DateTimeAxis() публичный Метод

Instantiates a new instance of the DateTimeAxis2 class.
public DateTimeAxis ( ) : System
Результат System

GetLabelValues() защищенный Метод

Returns a sequence of values to plot on the axis.
protected GetLabelValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
Результат IEnumerable

GetMajorAxisValues() защищенный Метод

Returns a sequence of major values.
protected GetMajorAxisValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
Результат IEnumerable

GetMajorTickMarkValues() защищенный Метод

Returns a sequence of values to create major tick marks for.
protected GetMajorTickMarkValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
Результат IEnumerable

GetPlotAreaCoordinate() защищенный Метод

Returns the plot area coordinate of a value.
protected GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue
value object The value to plot.
currentRange Range The range to use determine the coordinate.
length double The length of the axis.
Результат UnitValue

GetPlotAreaCoordinate() защищенный Метод

Returns the plot area coordinate of a value.
protected GetPlotAreaCoordinate ( object value, double length ) : UnitValue
value object The value to plot.
length double The length of the axis.
Результат UnitValue

GetValueAtPosition() защищенный Метод

Returns the value range given a plot area coordinate.
protected GetValueAtPosition ( UnitValue value ) : IComparable
value UnitValue The position.
Результат IComparable

OnActualRangeChanged() защищенный Метод

Updates the typed actual maximum and minimum properties when the actual range changes.
protected OnActualRangeChanged ( Range range ) : void
range Range The actual range.
Результат void

PrepareAxisLabel() защищенный Метод

Prepares an instance of the DateTimeAxisLabel class by setting its IntervalType property.
protected PrepareAxisLabel ( Control label, object dataContext ) : void
label Windows.UI.Xaml.Controls.Control An instance of the DateTimeAxisLabel class. ///
dataContext object The data context to assign to the label. ///
Результат void

Описание свойств

ActualIntervalProperty публичное статическое свойство

Identifies the ActualInterval dependency property.
public static DependencyProperty ActualIntervalProperty
Результат DependencyProperty

ActualMaximumProperty публичное статическое свойство

Identifies the ActualMaximum dependency property.
public static DependencyProperty ActualMaximumProperty
Результат DependencyProperty

ActualMinimumProperty публичное статическое свойство

Identifies the ActualMinimum dependency property.
public static DependencyProperty ActualMinimumProperty
Результат DependencyProperty

IntervalProperty публичное статическое свойство

Identifies the Interval dependency property.
public static DependencyProperty IntervalProperty
Результат DependencyProperty

IntervalTypeProperty публичное статическое свойство

Identifies the InternalIntervalType dependency property.
public static DependencyProperty IntervalTypeProperty
Результат DependencyProperty

MaximumProperty публичное статическое свойство

Identifies the Maximum dependency property.
public static DependencyProperty MaximumProperty
Результат DependencyProperty

MinimumProperty публичное статическое свойство

Identifies the Minimum dependency property.
public static DependencyProperty MinimumProperty
Результат DependencyProperty