StringInfo.SubstringByTextElements 메서드
정의
현재 StringInfo 개체에서 텍스트 요소의 부분 문자열을 검색합니다.Retrieves a substring of text elements from the current StringInfo object.
오버로드
SubstringByTextElements(Int32) |
현재 StringInfo 개체에서, 지정된 텍스트 요소에서 시작하여 마지막 텍스트 요소까지 계속되는 텍스트 요소의 부분 문자열을 검색합니다.Retrieves a substring of text elements from the current StringInfo object starting from a specified text element and continuing through the last text element. |
SubstringByTextElements(Int32, Int32) |
현재 StringInfo 개체에서, 지정된 텍스트 요소에서 시작하여 지정된 수의 텍스트 요소까지 계속되는 텍스트 요소의 부분 문자열을 가져옵니다.Retrieves a substring of text elements from the current StringInfo object starting from a specified text element and continuing through the specified number of text elements. |
SubstringByTextElements(Int32)
현재 StringInfo 개체에서, 지정된 텍스트 요소에서 시작하여 마지막 텍스트 요소까지 계속되는 텍스트 요소의 부분 문자열을 검색합니다.Retrieves a substring of text elements from the current StringInfo object starting from a specified text element and continuing through the last text element.
public:
System::String ^ SubstringByTextElements(int startingTextElement);
public string SubstringByTextElements (int startingTextElement);
member this.SubstringByTextElements : int -> string
Public Function SubstringByTextElements (startingTextElement As Integer) As String
매개 변수
- startingTextElement
- Int32
이 StringInfo 개체에 있는 텍스트 요소의 인덱스(0부터 시작)입니다.The zero-based index of a text element in this StringInfo object.
반환
이 StringInfo 개체에서, startingTextElement
매개 변수에 지정된 텍스트 요소 인덱스에서 시작하여 이 개체의 마지막 텍스트 요소까지 계속되는 텍스트 요소의 부분 문자열입니다.A substring of text elements in this StringInfo object, starting from the text element index specified by the startingTextElement
parameter and continuing through the last text element in this object.
예외
startingTextElement
가 0보다 작은 경우startingTextElement
is less than zero.
또는-or- 현재 StringInfo 개체의 값인 문자열이 빈 문자열("")인 경우The string that is the value of the current StringInfo object is the empty string ("").
설명
0부터 4까지 인덱싱된 5 개의 텍스트 요소로 구성 된 문자열을 고려 합니다.Consider a string that consists of five text elements, indexed from 0 through 4. startingTextElement
매개 변수가 1 인 경우이 SubstringByTextElements 메서드는 인덱스가 1, 2, 3 및 4 인 텍스트 요소를 구성 하는 부분 문자열을 반환 합니다.If the startingTextElement
parameter is 1, the SubstringByTextElements method returns a substring that consists of the text elements for which the indexes are 1, 2, 3, and 4.
적용 대상
SubstringByTextElements(Int32, Int32)
현재 StringInfo 개체에서, 지정된 텍스트 요소에서 시작하여 지정된 수의 텍스트 요소까지 계속되는 텍스트 요소의 부분 문자열을 가져옵니다.Retrieves a substring of text elements from the current StringInfo object starting from a specified text element and continuing through the specified number of text elements.
public:
System::String ^ SubstringByTextElements(int startingTextElement, int lengthInTextElements);
public string SubstringByTextElements (int startingTextElement, int lengthInTextElements);
member this.SubstringByTextElements : int * int -> string
Public Function SubstringByTextElements (startingTextElement As Integer, lengthInTextElements As Integer) As String
매개 변수
- startingTextElement
- Int32
이 StringInfo 개체에 있는 텍스트 요소의 인덱스(0부터 시작)입니다.The zero-based index of a text element in this StringInfo object.
- lengthInTextElements
- Int32
검색할 텍스트 요소 수입니다.The number of text elements to retrieve.
반환
이 StringInfo 개체에 있는 텍스트 요소의 부분 문자열입니다.A substring of text elements in this StringInfo object. 부분 문자열은 lengthInTextElements
매개 변수에 지정된 텍스트 요소의 수로 구성되고 startingTextElement
매개 변수에 지정된 텍스트 요소 인덱스에서 시작합니다.The substring consists of the number of text elements specified by the lengthInTextElements
parameter and starts from the text element index specified by the startingTextElement
parameter.
예외
startingTextElement
가 0보다 작은 경우startingTextElement
is less than zero.
또는-or-
startingTextElement
가 현재 StringInfo 개체의 값인 문자열 길이보다 크거나 같은 경우startingTextElement
is greater than or equal to the length of the string that is the value of the current StringInfo object.
또는-or-
lengthInTextElements
가 0보다 작은 경우lengthInTextElements
is less than zero.
또는-or- 현재 StringInfo 개체의 값인 문자열이 빈 문자열("")인 경우The string that is the value of the current StringInfo object is the empty string ("").
또는-or-
startingTextElement
+ lengthInTextElements
가 이 StringInfo 개체의 텍스트 요소 수보다 큰 인덱스를 지정합니다.startingTextElement
+ lengthInTextElements
specify an index that is greater than the number of text elements in this StringInfo object.
설명
0부터 4까지 인덱싱된 5 개의 텍스트 요소로 구성 된 문자열을 고려 합니다.Consider a string that consists of five text elements, indexed from 0 through 4. startingTextElement
매개 변수가 1이 고 lengthInTextElements
매개 변수가 3 인 경우이 SubstringByTextElements 메서드는 인덱스가 1, 2, 3 인 텍스트 요소를 구성 하는 부분 문자열을 반환 합니다.If the startingTextElement
parameter is 1 and the lengthInTextElements
parameter is 3, the SubstringByTextElements method returns a substring that consists of the text elements for which the indexes are 1, 2, and 3.