VisualStyleElement.Rebar.ChevronVertical (Clase)
.NET Framework 3.0
Proporciona objetos VisualStyleElement para cada estado de un cheurón. Esta clase no se puede heredar.
Espacio de nombres: System.Windows.Forms.VisualStyles
Ensamblado: System.Windows.Forms (en system.windows.forms.dll)
Ensamblado: System.Windows.Forms (en system.windows.forms.dll)
En el ejemplo de código siguiente se muestra cómo crear VisualStyleRenderer con VisualStyleElement que la propiedad Normal devuelve. Para ejecutar este ejemplo, péguelo en un formulario Windows Forms. Controle el evento Paint del formulario y llame al método DrawVisualStyleElementRebarChevronVertical1 desde el método de control de eventos Paint, pasando e como PaintEventArgs.
public void DrawVisualStyleElementRebarChevronVertical1(PaintEventArgs e) { if (VisualStyleRenderer.IsElementDefined( VisualStyleElement.Rebar.ChevronVertical.Normal)) { VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Rebar.ChevronVertical.Normal); Rectangle rectangle1 = new Rectangle(10, 50, 50, 50); renderer.DrawBackground(e.Graphics, rectangle1); e.Graphics.DrawString("VisualStyleElement.Rebar.ChevronVertical.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)); }
Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter
Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.