TextRangeProviderWrapperMoveEndpointByUnit - метод

Moves one endpoint of the text range the specified number of text units within the document range.

Definition

Пространство имён: Tessa.UI.Automation.Helpers
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
C#
public int MoveEndpointByUnit(
	TextPatternRangeEndpoint endpoint,
	TextUnit unit,
	int count
)

Параметры

endpoint  TextPatternRangeEndpoint
The endpoint to move.
unit  TextUnit
The textual unit for moving.
count  Int32
The number of units to move. A positive value moves the endpoint forward. A negative value moves backward. A value of 0 has no effect.

Возвращаемое значение

Int32
The number of units actually moved, which can be less than the number requested if moving the endpoint runs into the beginning or end of the document.

Реализации

ITextRangeProviderMoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

См. также