RulerAnnotation

StockSharp.Xaml.Charting.Ultrachart

Ruler annotation.

Наследует: AnnotationBase

Конструкторы

RulerAnnotation()

Initializes a new instance of the ICH.

Свойства

RulerHeight : double

Ruler height.

RulerWidth : double

Ruler width.

Text1 : string

First line of ruler text.

Text2 : string

Second line of ruler text.

Методы

AttachInteractionHandlersTo(FrameworkElement)

Auto-remove on any mouse click.

DetachInteractionHandlersFrom(FrameworkElement)

Auto-remove on any mouse click.

FromCoordinate(double, IAxis) : IComparable

Converts a pixel coordinate to data-value

coord
The pixel coordinate.
axis
The axis for which the data value is calculated

Возвращает: The datavalue

GetSelectedCursor() : Cursor

Gets the Cursor to use for the annotation when selected

IsPointWithinBounds(Point) : bool

Returns true if the Point is within the bounds of the current IHitTestable element

point
The point to test

Возвращает: true if the Point is within the bounds

MakeInvisible()

Called internally by layout system when annotation is out of surface's bounds

MakeVisible(AnnotationCoordinates)

Called internally by layout system when annotation come into surface's bounds

OnApplyTemplate()

Builds the visual tree for the LayoutTransformer control when a new template is applied.

Поля

Text1Property : DependencyProperty

First line of ruler text.

Text2Property : DependencyProperty

Second line of ruler text.