LineAnnotationBase
Una clase base con propiedades compartidas para LineAnnotation, HorizontalLineAnnotation y VerticalLineAnnotation
Hereda de: AnnotationBase
Propiedades
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
Obtiene o establece el cepillo de Stroke de la línea
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
Obtiene o establece el StrokeDashArray@ de la línea
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
Obtiene o establece el StrokeThickness@ de la línea
Métodos
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)
Usado internamente para derivar el X1Property, Y1Property, X1Property, Y2Property par para el índice dado alrededor de la anotación.. e.g. index 0 devoluciones X1,Y1 índice 1 devuelve X2,Y1 índice 2 devuelve X2,Y2 índice 3 devuelve X1,Y2
- index
- El índice
- x
- La propiedad de dependencia de X coordina, ya sea X1Property o X2Property
- y
- La propiedad de dependencia Y coordinar, ya sea Y1Property o Y2Property
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
Consigue que el Cursor use para la anotación cuando se selecciona
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.IsPointWithinBounds(point)
Devuelve la verdad si el Punto está dentro de los límites del elemento IHitTestable
- point
- El punto de prueba
Devuelve: verdadero si el Punto está dentro de los límites
Campos
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
Define el StrokeDashArray@DependencyProperty@
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Define el Stroke DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
Define el StrokeThickness@DependencyProperty@