LineAnnotationWithLabelsBase
Proporciona una clase de base para HorizontalLineAnnotation, VerticalLineAnnotation
Hereda de: LineAnnotation
Constructores
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()
Inicia una nueva instancia de la clase LineAnnotationWithLabelsBase.
Propiedades
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value
Obtiene o establece una colección de etiquetas de anotación
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue
Obtiene o establece valor a qué etiquetas estarán sujetas
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting
Obtiene el valor de formato de texto predeterminado
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel
Obtiene el valor de etiqueta formateado
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value
Obtiene o establece la colocación para la etiqueta predeterminada
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value
Obtiene o establece cadena de formato que se aplica a todas las etiquetas de anotación
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value
Obtiene o establece un valor para la etiqueta predeterminada
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value
Obtiene o establece valor, indicando si muestra la etiqueta predeterminada o no
Métodos
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()
Añada nueva etiqueta a AnnotationLabels
Devuelve: Label que ha sido creada
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)
Posición de AnnotationLabel utilizando el valor de LabelPlacement enum
- label
- La etiqueta para colocar
- placement
- Discusión de colocación
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)
Llamado internamente para adjuntar a la instancia actual un AnnotationLabel
- label
- AnnotationLabel para adjuntar
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)
Añada una colección de AnnotationLabels a LineAnnotationWithLabelsBase@
- labels
- La colección de etiquetas para añadir
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)
Se adjunta el AnnotationLabel@ desde la corriente LineAnnotationWithLabelsBase
- label
- La etiqueta para desmontar
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)
Elimina una colección de AnnotationLabels a LineAnnotationWithLabelsBase@
- labels
- La colección de etiquetas para eliminar
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()
Consigue que el Cursor use para la anotación cuando se selecciona
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()
Retorno del eje, que la anotación actual muestra valor de datos para
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)
Invalida la etiqueta de anotación
- annotationLabel
- Label a invalidar
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.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
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()
Oculta la instancia actual de LineAnnotationWithLabelsBase
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)
Oculta la instancia actual de LineAnnotationWithLabelsBase
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()
Cuando se sobrescribe en una clase derivada, se invoca cuando el código de aplicación o los procesos internos llaman ApplyTemplate@.
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()
Llamado cuando la Anotación se adjunta a la superficie de los padres
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)
Método virtual para anular si desea recibir notificación de que el AxisAlignment ha cambiado
- axis
- oldAlignment
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)
Método virtual para anular si desea ser notificado que el padre XAxes ha cambiado
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()
Método virtual para anular si desea recibir notificación de que el XAxisId ha cambiado
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)
Método virtual para anular si desea ser notificado que el padre YAxes ha cambiado
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()
Método virtual para anular si desea recibir notificación de que el YAxisId ha cambiado
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)
Lugar ModifierAxisCanvas@ de eje apropiado a la posición.
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)
Trate de colocar todas las etiquetas de anotación en ModifierAxisCanvas de eje apropiado a la posición.
Campos
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty
Define el AnnotationLabelsPropiedad
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty
Define el DefaultLabelValuePropiedad
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty
Define el DefaultTextFormattingPropiedad
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty
Define el FormattedLabelPropiedad
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty
Define el LabelPlacementPropiedad
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty
Define el LabelTextFormattingPropiedad
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty
Define el LabelValuePropiedad
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty
Define el ShowLabelPropiedad