HorizontalLineAnnotation
Класс для HorizontalLineAnnotation
Наследует: LineAnnotationWithLabelsBase
Конструкторы
public HorizontalLineAnnotation()
horizontalLineAnnotation = HorizontalLineAnnotation()
Создает новый экземпляр HorizontalLineAnnotation
Свойства
public HorizontalAlignment HorizontalAlignment { get; set; }
value = horizontalLineAnnotation.HorizontalAlignment
horizontalLineAnnotation.HorizontalAlignment = value
Получает или устанавливает стыковку HorizontalLineAnnotation
public double YDragStep { get; set; }
value = horizontalLineAnnotation.YDragStep
horizontalLineAnnotation.YDragStep = value
Получает или устанавливает значение, которое определяет шаг перетаскивания для этого HorizontalLineAnnotation
Методы
protected override void GetPropertiesFromIndex(int index, DependencyProperty X, DependencyProperty Y)
horizontalLineAnnotation.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
- Y
public override IAxis GetUsedAxis()
result = horizontalLineAnnotation.GetUsedAxis()
Возвращает ось, которая в текущей аннотации показывает значение данных для
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
horizontalLineAnnotation.SetBasePoint(newPoint, index, xAxis, yAxis)
Называется внутри маршал пикселей указывает на значения X1, Y1, X2, Y2. Принимая точку () пикселя и точку (основу), задает значения данных X,Y.
- newPoint
- точка пикселя
- index
- Индекс базовой точки, где 0, 1, 2, 3 относятся к четырем углам аннотации.
- xAxis
- Текущая ось X
- yAxis
- Текущая Y-ось
Поля
public static readonly DependencyProperty HorizontalAlignmentProperty
value = HorizontalLineAnnotation.HorizontalAlignmentProperty
Определяет свойство HorizontalAlignment.
public static readonly DependencyProperty YDragStepProperty
value = HorizontalLineAnnotation.YDragStepProperty
Определяет свойство YDragStep.