VisualStyleElement.TrackBar.ThumbBottom Sınıf

Tanım

VisualStyleElement Aşağı dönük izleme çubuğu kaydırıcısının (başparmak olarak da bilinir) her durumu için nesneler sağlar. Bu sınıf devralınamaz.

public: ref class VisualStyleElement::TrackBar::ThumbBottom abstract sealed
public static class VisualStyleElement.TrackBar.ThumbBottom
type VisualStyleElement.TrackBar.ThumbBottom = class
Public Class VisualStyleElement.TrackBar.ThumbBottom
Devralma
VisualStyleElement.TrackBar.ThumbBottom

Örnekler

Aşağıdaki kod örneği, özelliği tarafından Disabled döndürülen ile VisualStyleElement nasıl oluşturulacağını VisualStyleRenderer gösterir. Bu örneği çalıştırmak için windows formuna yapıştırın. Formun Paint olayını işleyip yöntemini olay işleme yönteminden Paint olarak geçirerek çağırın eDrawVisualStyleElementTrackBarThumbBottom5PaintEventArgs.

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

Açıklamalar

sınıfının her özelliği VisualStyleElement.TrackBar.ThumbBottom , aşağı dönük izleme çubuğu kaydırıcısının farklı bir durumu için bir VisualStyleElement döndürür.

Özellikler

Disabled

Devre dışı durumda aşağı dönük izleme çubuğu kaydırıcısını temsil eden görsel stil öğesini alır.

Focused

Odağı olan aşağı dönük izleme çubuğu kaydırıcısını temsil eden görsel stil öğesini alır.

Hot

Etkin durumda aşağı dönük izleme çubuğu kaydırıcısını temsil eden görsel stil öğesini alır.

Normal

Normal durumda aşağı dönük izleme çubuğu kaydırıcısını temsil eden görsel stil öğesini alır.

Pressed

Basılan durumda aşağı dönük izleme çubuğu kaydırıcısını temsil eden görsel stil öğesini alır.

Şunlara uygulanır

Ayrıca bkz.