LineAnnotationWithLabelsBase

StockSharp.Xaml.Charting.Visuals.Annotations

Fornece uma classe base para HorizontalLineAnnotation, VerticalLineAnnotation

Herda de: LineAnnotation

Construtores

LineAnnotationWithLabelsBase
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()

Inicializa uma nova instância da classe LineAnnotationWithLabelsBase.

Propriedades

AnnotationLabels
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

DefaultLabelValue
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue

Obtém ou define o valor para o qual as etiquetas serão ligadas

DefaultTextFormatting
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting

Obtém o valor de formatação de texto padrão

FormattedLabel
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel

Obtém o valor da legenda formatada

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value

Obtém ou define a colocação para o rótulo padrão

LabelTextFormatting
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

LabelValue
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value

Obtém ou define um valor para a etiqueta padrão

ShowLabel
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

AddLabel
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()

Adiciona nova etiqueta a AnnotationLabels

Retorna: Rótulo que foi criado

ApplyPlacement
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
Attach
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)

Chamado internamente para anexar um AnnotationLabel à instância atual

label
O AnnotationLabel a anexar
AttachLabels
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
Detach
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)

Detalha o AnnotationLabel da actual LineAnnotationWithLabelsBase

label
O rótulo a separar
DetachLabels
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
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()

Obtém o Cursor a usar para a anotação quando seleccionado

GetUsedAxis
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()

Retorna o eixo, que a anotação atual mostra o valor dos dados para

InvalidateLabel
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)

Invalida a legenda de anotação

annotationLabel
Rótulo a invalidar
IsPointWithinBounds
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

MakeInvisible
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()

Oculta a instância atual de LineAnnotationWithLabelsBase

MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)

Oculta a instância atual de LineAnnotationWithLabelsBase

OnApplyTemplate
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.

OnAttached
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()

Chamada quando a Anotação está anexada à superfície- pai

OnAxisAlignmentChanged
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
OnXAxesCollectionChanged
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

OnXAxisIdChanged
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()

Método virtual para substituir se você deseja ser notificado de que o XAxisId mudou

OnYAxesCollectionChanged
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

OnYAxisIdChanged
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()

Método virtual para substituir se você deseja ser notificado de que o YAxisId mudou

PlaceAxisLabel
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)

Colocar em ModifierAxisCanvas de eixo apropriado na posição.

TryPlaceAxisLabels
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

AnnotationLabelsProperty
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty

Define a propriedade AnnotationLabels

DefaultLabelValueProperty
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty

Define a propriedade DefaultLabelValue

DefaultTextFormattingProperty
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty

Define a propriedade DefaultTextFormatting

FormattedLabelProperty
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty

Define a propriedade FormattedLabel

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty

Define a propriedade LabelPlacement

LabelTextFormattingProperty
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty

Define a propriedade LabelTextFormatting

LabelValueProperty
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty

Define a propriedade LabelValue

ShowLabelProperty
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty

Define a propriedade ShowLabel