Share via


ITextSnapshot.CopyTo 메서드

텍스트 범위를 문자 배열로 복사합니다.

네임스페이스:  Microsoft.VisualStudio.Text
어셈블리:  Microsoft.VisualStudio.Text.Data(Microsoft.VisualStudio.Text.Data.dll)

구문

‘선언
Sub CopyTo ( _
    sourceIndex As Integer, _
    destination As Char(), _
    destinationIndex As Integer, _
    count As Integer _
)
void CopyTo(
    int sourceIndex,
    char[] destination,
    int destinationIndex,
    int count
)
void CopyTo(
    int sourceIndex, 
    array<wchar_t>^ destination, 
    int destinationIndex, 
    int count
)
abstract CopyTo : 
        sourceIndex:int * 
        destination:char[] * 
        destinationIndex:int * 
        count:int -> unit
function CopyTo(
    sourceIndex : int, 
    destination : char[], 
    destinationIndex : int, 
    count : int
)

매개 변수

  • sourceIndex
    형식: Int32

    텍스트 스냅숏의 시작 인덱스입니다.

  • destination
    형식: array<Char[]

    대상 배열입니다.

  • destinationIndex
    형식: Int32

    대상 배열에서 텍스트 복사를 시작할 인덱스입니다.

  • count
    형식: Int32

    복사할 문자 수입니다.

예외

예외 조건
ArgumentNullException

destination가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

ArgumentOutOfRangeException

sourceIndex스냅샷, 길이가 0 보다 작거나입니다 또는 count , 0 보다 작은 또는 sourceIndex 플러스 count 스냅샷 길이 보다 큽니다 또는 destinationIndex , 0 보다 작은 또는 destinationIndex 플러스 count 의 길이 보다 큰 destination.

.NET Framework 보안

참고 항목

참조

ITextSnapshot 인터페이스

Microsoft.VisualStudio.Text 네임스페이스