RulerAnnotation
StockSharp.Xaml.Charting.Ultrachart
Ruler annotation.
Inherits: AnnotationBase
Constructors
RulerAnnotation()
Initializes a new instance of the ICH.
Properties
RulerHeight : double
Ruler height.
RulerWidth : double
Ruler width.
Methods
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
Returns: 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
Returns: 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.
Fields
RulerHeightProperty : DependencyProperty
Ruler height.
RulerWidthProperty : DependencyProperty
Ruler width.
Text1Property : DependencyProperty
First line of ruler text.
Text2Property : DependencyProperty
Second line of ruler text.