Clipboard.GetText 메서드

정의

클립보드의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

오버로드

GetText()

클립보드의 UnicodeText 데이터가 들어 있는 문자열을 반환합니다.

GetText(TextDataFormat)

클립보드의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

GetText()

클립보드의 UnicodeText 데이터가 들어 있는 문자열을 반환합니다.

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

반환

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

설명

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

추가 정보

적용 대상

GetText(TextDataFormat)

클립보드의 텍스트 데이터가 들어 있는 문자열을 반환합니다.

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

매개 변수

format
TextDataFormat

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

반환

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

추가 정보

적용 대상