RulerAnnotation
StockSharp.Xaml.Charting.Ultrachart
Ruler annotation.
继承自: AnnotationBase
构造函数
RulerAnnotation()
Initializes a new instance of the ICH.
属性
RulerHeight : double
Ruler height.
RulerWidth : double
Ruler width.
方法
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.
字段
RulerHeightProperty : DependencyProperty
Ruler height.
RulerWidthProperty : DependencyProperty
Ruler width.
Text1Property : DependencyProperty
First line of ruler text.
Text2Property : DependencyProperty
Second line of ruler text.