-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.Automation.Provider.ITextRangeProvider.MoveEndpointByUnit(Windows.UI.Xaml.Automation.Text.TextPatternRangeEndpoint,Windows.UI.Xaml.Automation.Text.TextUnit,System.Int32) |
winrt method |
Moves one endpoint of the text range the specified number of text units within the document range.
The endpoint to move.
The text measure unit for moving.
The number of units to move. A positive value moves the endpoint forward. A negative value moves it backward. A value of 0 has no effect.
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.