Range.SetRange(Int32, Int32) 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.
Sets the starting and ending character positions for the range.
public:
void SetRange(int Start, int End);
public void SetRange (int Start, int End);
abstract member SetRange : int * int -> unit
Public Sub SetRange (Start As Integer, End As Integer)
Parameters
- Start
- Int32
Required Integer. The starting character position of the range or selection.
- End
- Int32
Required Integer. The ending character position of the range or selection.
Remarks
Character position values start at the beginning of the story, with the first value being 0 (zero). All characters are counted, including nonprinting characters. Hidden characters are counted even if they're not displayed.
The SetRange method redefines the starting and ending positions of an existing Range object. This method differs from the Range(Object, Object) method, which is used to create a range, given a starting and ending position.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기