RulerAnnotation

StockSharp.Xaml.Charting.Ultrachart

Lineal Annotation.

Erbt von: AnnotationBase

Konstruktoren

RulerAnnotation
public RulerAnnotation()
rulerAnnotation = RulerAnnotation()

Initialisiert eine neue Instanz des ICH.

Eigenschaften

RulerHeight
public double RulerHeight { get; set; }
value = rulerAnnotation.RulerHeight
rulerAnnotation.RulerHeight = value

Höhe des Lineals.

RulerWidth
public double RulerWidth { get; set; }
value = rulerAnnotation.RulerWidth
rulerAnnotation.RulerWidth = value

Breite des Lineals.

Text1
public string Text1 { get; set; }
value = rulerAnnotation.Text1
rulerAnnotation.Text1 = value

Erste Zeile des Lineal-Textes.

Text2
public string Text2 { get; set; }
value = rulerAnnotation.Text2
rulerAnnotation.Text2 = value

Zweite Zeile des Linealtextes.

Methoden

AttachInteractionHandlersTo
protected override void AttachInteractionHandlersTo(FrameworkElement source)
rulerAnnotation.AttachInteractionHandlersTo(source)

Auto-Remove auf jedem Mausklick.

DetachInteractionHandlersFrom
protected override void DetachInteractionHandlersFrom(FrameworkElement source)
rulerAnnotation.DetachInteractionHandlersFrom(source)

Auto-Remove auf jedem Mausklick.

FromCoordinate
protected override IComparable FromCoordinate(double coord, IAxis axis)
result = rulerAnnotation.FromCoordinate(coord, axis)

Konvertiert eine Pixelkoordinate in Data-Value

coord
Die Pixelkoordinate.
axis
Die Achse, für die der Datenwert berechnet wird

Rückgabe: Der DataValue

GetCurrentPlacementStrategy
protected override IAnnotationPlacementStrategy GetCurrentPlacementStrategy()
result = rulerAnnotation.GetCurrentPlacementStrategy()
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = rulerAnnotation.GetSelectedCursor()

Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = rulerAnnotation.IsPointWithinBounds(point)

Gibt true zurück, wenn der Punkt innerhalb der Grenzen des aktuellen IHitTestable-Elements liegt

point
Der Punkt zum Testen

Rückgabe: Wahr, wenn der Punkt innerhalb der Grenzen liegt

MakeInvisible
protected override void MakeInvisible()
rulerAnnotation.MakeInvisible()

Intern vom Layoutsystem aufgerufen, wenn die Annotation außerhalb der Grenzen der Oberfläche liegt

MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
rulerAnnotation.MakeVisible(coordinates)

Intern vom Layoutsystem aufgerufen, wenn die Annotation in die Grenzen der Oberfläche gelangt

OnApplyTemplate
public override void OnApplyTemplate()
rulerAnnotation.OnApplyTemplate()

Erstellt den visuellen Baum für das LayoutTransformer @ Steuerelement, wenn eine neue Vorlage angewendet wird.

Felder

RulerHeightProperty
public static readonly DependencyProperty RulerHeightProperty
value = RulerAnnotation.RulerHeightProperty

Höhe des Lineals.

RulerWidthProperty
public static readonly DependencyProperty RulerWidthProperty
value = RulerAnnotation.RulerWidthProperty

Breite des Lineals.

Text1Property
public static readonly DependencyProperty Text1Property
value = RulerAnnotation.Text1Property

Erste Zeile des Lineal-Textes.

Text2Property
public static readonly DependencyProperty Text2Property
value = RulerAnnotation.Text2Property

Zweite Zeile des Linealtextes.