DataFormats.Format 클래스

정의

클립보드 형식 형식을 나타냅니다.

public: ref class DataFormats::Format
public class DataFormats.Format
type DataFormats.Format = class
Public Class DataFormats.Format
상속
DataFormats.Format

예제

다음 코드 예제에서는 형식 이름/ID 쌍을 DataFormats.Format 나타내는 검색 하는 방법을 보여 있습니다. 형식이 UnicodeText 요청되고 검색된 DataFormats.Format 내용이 텍스트 상자에 표시됩니다.

이 코드를 만들려면 이 코드가 textBox1 필요합니다.

private:
   void GetMyFormatInfomation()
   {
      // Creates a DataFormats.Format for the Unicode data format.
      DataFormats::Format^ myFormat = DataFormats::GetFormat(
         DataFormats::UnicodeText );
      
      // Displays the contents of myFormat.
      textBox1->Text = String::Format( "ID value: {0}\nFormat name: {1}",
         myFormat->Id, myFormat->Name );
   }
private void GetMyFormatInfomation() {
   // Creates a DataFormats.Format for the Unicode data format.
   DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.UnicodeText);

   // Displays the contents of myFormat.
   textBox1.Text = "ID value: " + myFormat.Id + '\n' +
      "Format name: " + myFormat.Name;
}
Private Sub GetMyFormatInfomation()
    ' Creates a DataFormats.Format for the Unicode data format.
    Dim myFormat As DataFormats.Format = _
       DataFormats.GetFormat(DataFormats.UnicodeText)
       
    ' Displays the contents of myFormat.
    textBox1.Text = "ID value: " + myFormat.Id.ToString() + ControlChars.Cr _
                  + "Format name: " + myFormat.Name
End Sub

설명

형식 형식은 텍스트 기반 형식 이름과 ID 번호로 구성됩니다. 형식 이름/ID 번호 쌍은 시스템 Clipboard 또는 다른 형식을 정의할 수 있습니다.

생성자

Name Description
DataFormats.Format(String, Int32)

핸들이 필요한지 여부를 나타내는 부울을 사용하여 클래스의 DataFormats.Format 새 인스턴스를 Win32 초기화합니다.

속성

Name Description
Id

이 형식의 ID 번호를 가져옵니다.

Name

이 형식의 이름을 가져옵니다.

메서드

Name Description
Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보