DataObject.GetText 메서드

정의

데이터 개체에서 텍스트 데이터를 검색합니다.

오버로드

Name Description
GetText()

형식으로 데이터 개체에서 텍스트 데이터를 검색합니다 UnicodeText .

GetText(TextDataFormat)

지정된 TextDataFormat 값으로 표시된 형식으로 데이터 개체에서 텍스트 데이터를 검색합니다.

GetText()

Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs

형식으로 데이터 개체에서 텍스트 데이터를 검색합니다 UnicodeText .

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

반품

데이터 개체의 텍스트 데이터 또는 Empty 데이터 개체에 형식의 데이터가 UnicodeText 포함되지 않은 경우

설명

이 메서드를 ContainsText 사용하여 검색하기 전에 데이터 개체에 텍스트 데이터가 포함되어 있는지 여부를 확인하려면 이 메서드를 사용합니다.

메서드를 SetText 사용하여 데이터 개체에 텍스트 데이터를 추가합니다.

추가 정보

적용 대상

GetText(TextDataFormat)

Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs
Source:
DataObject.cs

지정된 TextDataFormat 값으로 표시된 형식으로 데이터 개체에서 텍스트 데이터를 검색합니다.

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

매개 변수

format
TextDataFormat

값 중 TextDataFormat 하나입니다.

반품

데이터 개체의 텍스트 데이터 또는 Empty 데이터 개체에 지정된 형식의 데이터가 없는 경우

예외

format 가 유효한 TextDataFormat 값이 아닌 경우

설명

이 메서드를 ContainsText 사용하여 검색하기 전에 데이터 개체에 텍스트 데이터가 포함되어 있는지 여부를 확인하려면 이 메서드를 사용합니다.

메서드를 SetText 사용하여 데이터 개체에 텍스트 데이터를 추가합니다.

추가 정보

적용 대상