Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

VisualStyleElement.ScrollBar.RightTrackHorizontal Classe

Provides VisualStyleElement objects for each state of the right part of a horizontal scroll bar track. Esta classe não pode ser herdada.

Namespace:  System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (em System.Windows.Forms. dll)
public static class RightTrackHorizontal

Each property of the VisualStyleElement.ScrollBar.RightTrackHorizontal class returns a VisualStyleElement for a different state of the horizontal scroll bar track to the right of the scroll box (also known as the thumb).

Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003 Platform Note:

Estilos Visuais só há suporte para essas plataformas.

The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned by the Normal property.Para executar esse exemplo, Colar-la em um Windows Form.Handle the form’s Paint event and call the DrawVisualStyleElementScrollBarRightTrackHorizontal1 method from the Paint event-handling method, passing e as PaintEventArgs.

public void DrawVisualStyleElementScrollBarRightTrackHorizontal1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.ScrollBar.RightTrackHorizontal.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.ScrollBar.RightTrackHorizontal.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.ScrollBar.RightTrackHorizontal.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));
}


System.Object
  System.Windows.Forms.VisualStyles.VisualStyleElement.ScrollBar.RightTrackHorizontal
Quaisquer membros públicos estático (compartilhados na Visual Basic) desse tipo são Thread seguro. Não há garantia de que qualquer membro de instância seja isento de segmentos.
Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
A Microsoft está realizando uma pesquisa online para saber sua opinião sobre o site do MSDN. Se você optar por participar, a pesquisa online lhe será apresentada quando você sair do site do MSDN.

Deseja participar?
© 2013 Microsoft. Todos os direitos reservados.