LineAnnotationBase
Uma classe base com propriedades compartilhadas para LineAnnotation, HorizontalLineAnnotation e VerticalLineAnnotation
Herda de: AnnotationBase
Propriedades
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
Obtém ou define o pincel de traço da linha
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
Obtém ou define o StrokeDashArray da linha
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
Obtém ou define o StrokeThickness da linha
Métodos
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)
Usado internamente para derivar o par X1Property, Y1Property, X1Property, Y2Property para o índice indicado em torno da anotação. e.g. index 0 retorna X1, Y1 index 1 retorna X2, Y1 index 2 retorna X2, Y2 index 3 retorna X1, Y2
- index
- O índice
- x
- A propriedade X coordena dependência, seja X1Property ou X2Property
- y
- A propriedade Y coordena dependência, seja Y1Property ou Y2Property
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
Obtém o Cursor a usar para a anotação quando seleccionado
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.IsPointWithinBounds(point)
Retorna true se o Ponto estiver dentro dos limites do elemento IHitTestable atual
- point
- O ponto a testar
Retorna: verdadeiro se o Ponto estiver dentro dos limites
Campos
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
Define StrokeDashArray DependencyProperty @
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Define o curso DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
Define StrokeThickness DependencyProperty @