LineAnnotationWithLabelsBase
Fornece uma classe base para HorizontalLineAnnotation, VerticalLineAnnotation
Herda de: LineAnnotation
Construtores
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()
Inicializa uma nova instância da classe LineAnnotationWithLabelsBase.
Propriedades
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value
Obtém ou define uma coleção de rótulos de anotações
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue
Obtém ou define o valor para o qual as etiquetas serão ligadas
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting
Obtém o valor de formatação de texto padrão
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel
Obtém o valor da legenda formatada
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value
Obtém ou define a colocação para o rótulo padrão
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value
Obtém ou define a formatação da string que é aplicada a todas as legendas de anotações
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value
Obtém ou define um valor para a etiqueta padrão
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value
Obtém ou define valor, indicando se mostra ou não o rótulo por omissão
Métodos
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()
Adiciona nova etiqueta a AnnotationLabels
Retorna: Rótulo que foi criado
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)
Posiciona o AnnotationLabel usando o valor do LabelPlacement enum
- label
- O rótulo a colocar
- placement
- Argumentos de colocação
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)
Chamado internamente para anexar um AnnotationLabel à instância atual
- label
- O AnnotationLabel a anexar
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)
Adiciona uma coleção de AnnotationLabel instâncias para LineAnnotationWithLabelsBase
- labels
- A coleção de rótulos a adicionar
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)
Detalha o AnnotationLabel da actual LineAnnotationWithLabelsBase
- label
- O rótulo a separar
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)
Remove uma coleção de AnnotationLabel instâncias para LineAnnotationWithLabelsBase
- labels
- A coleção de rótulos a remover
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()
Obtém o Cursor a usar para a anotação quando seleccionado
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()
Retorna o eixo, que a anotação atual mostra o valor dos dados para
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)
Invalida a legenda de anotação
- annotationLabel
- Rótulo a invalidar
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.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
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()
Oculta a instância atual de LineAnnotationWithLabelsBase
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)
Oculta a instância atual de LineAnnotationWithLabelsBase
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()
Quando substituído em uma classe derivada, é invocado sempre que o código de aplicação ou processos internos chamar ApplyTemplate.
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()
Chamada quando a Anotação está anexada à superfície- pai
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)
Método virtual para substituir se você deseja ser notificado de que o AxisAlignment mudou
- axis
- oldAlignment
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)
Método virtual para substituir se deseja ser notificado de que o XAxes pai mudou
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()
Método virtual para substituir se você deseja ser notificado de que o XAxisId mudou
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)
Método virtual para substituir se você deseja ser notificado de que o YAxes pai mudou
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()
Método virtual para substituir se você deseja ser notificado de que o YAxisId mudou
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)
Colocar em ModifierAxisCanvas de eixo apropriado na posição.
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)
Tente colocar todas as etiquetas de anotação em ModifierAxisCanvas do eixo apropriado na posição.
Campos
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty
Define a propriedade AnnotationLabels
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty
Define a propriedade DefaultLabelValue
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty
Define a propriedade DefaultTextFormatting
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty
Define a propriedade FormattedLabel
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty
Define a propriedade LabelPlacement
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty
Define a propriedade LabelTextFormatting
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty
Define a propriedade LabelValue
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty
Define a propriedade ShowLabel