LineAnnotationBase
Базовый класс с общими свойствами для LineAnnotation, HorizontalLineAnnotation и VerticalLineAnnotation.
Наследует: AnnotationBase
Свойства
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
Получает или устанавливает мазок линии Stroke
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
Получает или устанавливает StrokeDashArray строки
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
Получает или устанавливает StrokeThickness строки
Методы
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
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
Получает курсор для использования для аннотации при выборе
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.IsPointWithinBounds(point)
Возвращается верно, если Точка находится в пределах текущего элемента IHitTestable
- point
- Точка, чтобы проверить
Возвращает: если точка находится в пределах
Поля
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
Определяет StrokeDashArray DependencyProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Определяет обводку DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
Определяет StrokeThickness DependencyProperty