SystemIcons 클래스

정의

SystemIcons 클래스의 각 속성은 Windows 시스템 전체 아이콘에 대한 Icon 개체입니다. 이 클래스는 상속할 수 없습니다.

public ref class SystemIcons sealed
public sealed class SystemIcons
type SystemIcons = class
Public NotInheritable Class SystemIcons
상속
SystemIcons

예제

다음 코드 예제에서는 열거형을 사용 하 여 GraphicsUnit 핸들에서 Icon 비트맵을 로드 하는 방법 및 비트맵의 Round 사각형 경계를 그리는 메서드의 사용을 보여 줍니다.

이 예제는 Windows Forms와 함께 사용하도록 설계되었습니다. Button2라는 단추가 포함된 양식을 만듭니다. 코드를 양식에 붙여넣고 이 메서드를 단추의 Click 이벤트와 연결합니다.

void Button2_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   Bitmap^ bitmap1 = Bitmap::FromHicon( SystemIcons::Hand->Handle );
   Graphics^ formGraphics = this->CreateGraphics();
   GraphicsUnit units = GraphicsUnit::Point;
   RectangleF bmpRectangleF = bitmap1->GetBounds( units );
   Rectangle bmpRectangle = Rectangle::Round( bmpRectangleF );
   formGraphics->DrawRectangle( Pens::Blue, bmpRectangle );
   delete formGraphics;
}
private void Button2_Click(System.Object sender, System.EventArgs e)
{

    Bitmap bitmap1 = Bitmap.FromHicon(SystemIcons.Hand.Handle);
    Graphics formGraphics = this.CreateGraphics();
    GraphicsUnit units = GraphicsUnit.Point;

    RectangleF bmpRectangleF = bitmap1.GetBounds(ref units);
    Rectangle bmpRectangle = Rectangle.Round(bmpRectangleF);
    formGraphics.DrawRectangle(Pens.Blue, bmpRectangle);
    formGraphics.Dispose();
}
Private Sub Button2_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button2.Click

    Dim bitmap1 As Bitmap = Bitmap.FromHicon(SystemIcons.Hand.Handle)
    Dim formGraphics As Graphics = Me.CreateGraphics()
    Dim units As GraphicsUnit = GraphicsUnit.Point
    Dim bmpRectangleF As RectangleF = bitmap1.GetBounds(units)
    Dim bmpRectangle As Rectangle = Rectangle.Round(bmpRectangleF)
    formGraphics.DrawRectangle(Pens.Blue, bmpRectangle)
    formGraphics.Dispose()
End Sub

설명

Note

.NET 6 이상 버전에서는 이 형식을 포함하는 System.Drawing.Common 패키지가 Windows 운영 체제에서만 지원됩니다. 플랫폼 간 앱에서 이 형식을 사용하면 컴파일 시간 경고 및 런타임 예외가 발생합니다. 자세한 내용은 Windows에서만 지원되는 System.Drawing.Common을 참조 하세요.

속성

Name Description
Application

Icon 기본 애플리케이션 아이콘(WIN32: IDI_APPLICATION)이 포함된 개체를 가져옵니다.

Asterisk

Icon 시스템 별표 아이콘(WIN32: IDI_ASTERISK)이 포함된 개체를 가져옵니다.

Error

Icon 시스템 오류 아이콘(WIN32: IDI_ERROR)이 포함된 개체를 가져옵니다.

Exclamation

Icon 시스템 느낌표 아이콘(WIN32: IDI_EXCLAMATION)이 포함된 개체를 가져옵니다.

Hand

Icon 시스템 손 아이콘(WIN32: IDI_HAND)이 포함된 개체를 가져옵니다.

Information

Icon 시스템 정보 아이콘(WIN32: IDI_INFORMATION)이 포함된 개체를 가져옵니다.

Question

Icon 시스템 질문 아이콘(WIN32: IDI_QUESTION)이 포함된 개체를 가져옵니다.

Shield

Icon 방패 아이콘이 포함된 개체를 가져옵니다.

Warning

Icon 시스템 경고 아이콘(WIN32: IDI_WARNING)이 포함된 개체를 가져옵니다.

WinLogo

Windows 로고 아이콘(WIN32: IDI_WINLOGO)이 포함된 Icon 개체를 가져옵니다.

메서드

Name Description
Equals(Object)

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

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

기본 해시 함수로 작동합니다.

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상

추가 정보