VisualStyleElement.ExplorerBar.NormalGroupExpand 클래스

정의

탐색 창의 일반 항목 그룹에 사용되는 확장 단추의 각 상태에 대한 VisualStyleElement 개체를 제공합니다. 이 클래스는 상속될 수 없습니다.

public: ref class VisualStyleElement::ExplorerBar::NormalGroupExpand abstract sealed
public static class VisualStyleElement.ExplorerBar.NormalGroupExpand
type VisualStyleElement.ExplorerBar.NormalGroupExpand = class
Public Class VisualStyleElement.ExplorerBar.NormalGroupExpand
상속
VisualStyleElement.ExplorerBar.NormalGroupExpand

예제

다음 코드 예제에는 만드는 방법을 보여 줍니다는 VisualStyleRenderer 사용 하 여 합니다 VisualStyleElement 반환한는 Normal 속성입니다. 이 예제를 실행 하려면 Windows 폼에 붙여 넣습니다. 양식의 처리 Paint 이벤트 및 호출 합니다 DrawVisualStyleElementExplorerBarNormalGroupExpand1 메서드에서 Paint 전달 하는 이벤트 처리 메서드를 e 으로 PaintEventArgs입니다.

public void DrawVisualStyleElementExplorerBarNormalGroupExpand1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal",
             this.Font, Brushes.Black, new Point(10, 10));
    }
    else
        e.Graphics.DrawString("This element is not defined in the current visual style.",
             this.Font, Brushes.Black, new Point(10, 10));
}
Public Sub DrawVisualStyleElementExplorerBarNormalGroupExpand1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal", _
          Me.Font, Brushes.Black, New Point(10, 10))
    Else
        e.Graphics.DrawString("This element is not defined in the current visual style.", _
          Me.Font, Brushes.Black, New Point(10, 10))
    End If
End Sub

설명

각 속성을 VisualStyleElement.ExplorerBar.NormalGroupExpand 가져옵니다 클래스를 VisualStyleElement 일반 그룹 탐색 창의 항목에는 확장 단추의의 여러 상태에 대 한 같은 파일 및 폴더 작업 Windows 탐색기에서 그룹입니다.

속성

Hot

탐색 창의 일반 항목 그룹에 사용되는 활성 확장 단추를 나타내는 비주얼 스타일 요소를 가져옵니다.

Normal

탐색 창의 일반 항목 그룹에 사용되는 표준 확장 단추를 나타내는 비주얼 스타일 요소를 가져옵니다.

Pressed

탐색 창의 일반 항목 그룹에 사용되는 눌러진 확장 단추를 나타내는 비주얼 스타일 요소를 가져옵니다.

적용 대상

추가 정보