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.Window.HorizontalScroll Classe

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

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

Each property of the VisualStyleElement.Window.HorizontalScroll class returns a VisualStyleElement for a different state of the horizontal scroll bar of a window.

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 DrawVisualStyleElementWindowHorizontalScroll1 method from the Paint event-handling method, passing e as PaintEventArgs.

public void DrawVisualStyleElementWindowHorizontalScroll1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Window.HorizontalScroll.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Window.HorizontalScroll.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Window.HorizontalScroll.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.Window.HorizontalScroll
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
© 2013 Microsoft. Todos os direitos reservados.