Range.EndOf(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves or extends the ending character position of a range or selection to the end of the nearest specified text unit.
public int EndOf (ref object Unit, ref object Extend);
abstract member EndOf : obj * obj -> int
Public Function EndOf (Optional ByRef Unit As Object, Optional ByRef Extend As Object) As Integer
Parameters
- Unit
- Object
Optional Object. The unit by which to move the ending character position. Can be one of the WdUnits constants.
- Extend
- Object
Optional Object. Can be one of the WdMovementType constants.
Returns
Remarks
This method returns a value that indicates the number of character positions the range or selection was moved or extended (movement is forward in the document).
If the both the starting and ending positions for the range or selection are already at the end of the specified unit, this method doesn't move or extend the range or selection.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기