CursorEventArgs.NewSelectionEnd Propriedade
Definição
Obtém ou define a posição final de um intervalo selecionado.Gets or sets the end position of a selected range. Dependendo do evento, também define a posição final do intervalo.Depending on the event, also sets the end position of the range.
public:
property double NewSelectionEnd { double get(); void set(double value); };
public double NewSelectionEnd { get; set; }
member this.NewSelectionEnd : double with get, set
Public Property NewSelectionEnd As Double
Valor da propriedade
Um double valor que representa a posição final de um intervalo selecionado.A double value that represents the end position of a selected range.
Comentários
A NewSelectionEnd propriedade representa a nova posição de um cursor e pode ser usada nos CursorPositionChanging CursorPositionChanged eventos e para obter a posição do cursor.The NewSelectionEnd property represents the new position of a cursor, and can be used in the CursorPositionChanging and CursorPositionChanged events to get the cursor position. Ele também pode ser usado no SelectionRangeChanging evento para definir a posição do cursor.It can also be used in the SelectionRangeChanging event to set the cursor position.
Observe que a definição dessa propriedade no SelectionRangeChanging evento não terá efeito.Note that setting this property in the SelectionRangeChanging event will have no effect. A NewSelectionEnd Propriedade terá um valor de NaN neste evento.The NewSelectionEnd property will have a value of NaN in this event.
A posição inicial de um intervalo selecionado não é necessariamente menor que a posição final de um intervalo selecionado.The start position of a selected range is not necessarily less than the end position of a selected range. A posição inicial é a posição em que o usuário clicou na área do gráfico, e a posição final é a posição do mouse no momento em que o evento é gerado.The start position is the position where the user fist clicked within the chart area, and the end position is the position of the mouse at the time the event is raised.
Para determinar a área do gráfico que o evento está sendo gerado para usar a ChartArea propriedade.To determine the chart area that the event is being raised for use the ChartArea property.
Use a Axis propriedade para determinar se essa posição final é para um intervalo selecionado ao longo do eixo X ou Y primário ou secundário.Use the Axis property to determine if this end position is for a range selected along the primary or secondary X or Y axis.