VerticalLineAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Uma classe para VerticalLineAnnotation

Herda de: LineAnnotationWithLabelsBase

Construtores

VerticalLineAnnotation
public VerticalLineAnnotation()
verticalLineAnnotation = VerticalLineAnnotation()

Cria uma nova instância de VerticalLineAnnotation

Propriedades

LabelsOrientation
public Orientation LabelsOrientation { get; set; }
value = verticalLineAnnotation.LabelsOrientation
verticalLineAnnotation.LabelsOrientation = value

Obtém ou define valor, indicando se as etiquetas serão colocadas vertical ou horizontalmente

VerticalAlignment
public VerticalAlignment VerticalAlignment { get; set; }
value = verticalLineAnnotation.VerticalAlignment
verticalLineAnnotation.VerticalAlignment = value

Obtém ou define acoplagem de VerticalLineAnnotation

Métodos

ApplyPlacement
protected override void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
verticalLineAnnotation.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 override void Attach(AnnotationLabel label)
verticalLineAnnotation.Attach(label)

Chamado internamente para anexar um AnnotationLabel à instância atual

label
O AnnotationLabel a anexar
GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
verticalLineAnnotation.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
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = verticalLineAnnotation.GetSelectedCursor()

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

GetUsedAxis
public override IAxis GetUsedAxis()
result = verticalLineAnnotation.GetUsedAxis()

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

SetBasePoint
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
verticalLineAnnotation.SetBasePoint(newPoint, index, xAxis, yAxis)

Chamado internamente para pontos de pixel marshall para X1,Y1,X2,Y2. Tomando um ponto de pixel () e ponto base, define os valores de dados X,Y.

newPoint
O ponto de pixel
index
O índice de ponto base, onde 0, 1, 2, 3 se referem aos quatro cantos de uma Anotação
xAxis
Os X- Axis atuais
yAxis
O atual Y-Axis

Campos

LabelsOrientationProperty
public static readonly DependencyProperty LabelsOrientationProperty
value = VerticalLineAnnotation.LabelsOrientationProperty

Define a propriedade LabelDirection

VerticalAlignmentProperty
public static readonly DependencyProperty VerticalAlignmentProperty
value = VerticalLineAnnotation.VerticalAlignmentProperty

Define a propriedade VerticalAlignment