DataObject.GetText 메서드

정의

이 데이터 개체의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

오버로드

GetText(TextDataFormat)

이 데이터 개체에 있는 지정된 형식의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

GetText()

이 데이터 개체의 UnicodeText 데이터가 들어 있는 문자열을 반환합니다.

GetText(TextDataFormat)

이 데이터 개체에 있는 지정된 형식의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

public:
 System::String ^ GetText(System::Windows::TextDataFormat format);
public string GetText (System.Windows.TextDataFormat format);
member this.GetText : System.Windows.TextDataFormat -> string
Public Function GetText (format As TextDataFormat) As String

매개 변수

format
TextDataFormat

검색할 특정 텍스트 데이터 서식을 지정하는 TextDataFormat의 멤버입니다.

반환

지정된 데이터 형식의 텍스트 데이터가 들어 있는 문자열이거나, 해당 텍스트 데이터가 없으면 빈 문자열입니다.

예외

formatTextDataFormat의 유효한 멤버가 지정되지 않은 경우

추가 정보

적용 대상

GetText()

이 데이터 개체의 UnicodeText 데이터가 들어 있는 문자열을 반환합니다.

public:
 System::String ^ GetText();
public string GetText ();
member this.GetText : unit -> string
Public Function GetText () As String

반환

UnicodeText 데이터가 들어 있는 문자열이거나, UnicodeText 데이터가 없으면 빈 문자열입니다.

설명

UnicodeText 데이터 형식으로 인코딩된 16 비트 문자 유니코드, u t F-16과 u c S-2 라고도 합니다.

추가 정보

적용 대상