VisualStyleElement.Rebar.Band 클래스

정의

크기 조정 막대 밴드에 대한 VisualStyleElement를 제공합니다. 이 클래스는 상속될 수 없습니다.

public: ref class VisualStyleElement::Rebar::Band abstract sealed
public static class VisualStyleElement.Rebar.Band
type VisualStyleElement.Rebar.Band = class
Public Class VisualStyleElement.Rebar.Band
상속
VisualStyleElement.Rebar.Band

예제

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

public void DrawVisualStyleElementRebarBand1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Rebar.Band.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Rebar.Band.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Rebar.Band.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 DrawVisualStyleElementRebarBand1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Rebar.Band.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Rebar.Band.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Rebar.Band.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

설명

Normal 의 속성을 VisualStyleElement.Rebar.Band 반환 클래스는 VisualStyleElement rebar 밴드를 나타내는입니다.

속성

Normal

크기 조정 막대 밴드를 나타내는 비주얼 스타일 요소를 가져옵니다.

적용 대상

추가 정보