LineAnnotationBase

StockSharp.Xaml.Charting.Visuals.Annotations

Базовый класс с общими свойствами для LineAnnotation, HorizontalLineAnnotation и VerticalLineAnnotation.

Наследует: AnnotationBase

Свойства

Stroke
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value

Получает или устанавливает мазок линии Stroke

StrokeDashArray
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value

Получает или устанавливает StrokeDashArray строки

StrokeThickness
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value

Получает или устанавливает StrokeThickness строки

Методы

GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)

Используется для получения пары X1Property, Y1Property, X1Property, Y2Property для данного индекса вокруг аннотации. e.g. index 0 Returns X1,Y1 index 1 Returns X2,Y1 index 2 Returns X2,Y2 index 3 Returns X1,Y2

index
Индекс
x
Свойство координатной зависимости X, либо X1Property, либо X2Property
y
Свойство Y-координатной зависимости, Y1Property или Y2Property
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()

Получает курсор для использования для аннотации при выборе

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

Возвращается верно, если Точка находится в пределах текущего элемента IHitTestable

point
Точка, чтобы проверить

Возвращает: если точка находится в пределах

Поля

StrokeDashArrayProperty
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty

Определяет StrokeDashArray DependencyProperty

StrokeProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty

Определяет обводку DependencyProperty

StrokeThicknessProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty

Определяет StrokeThickness DependencyProperty