VisualStyleElement.StartPanel.LogOff 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为VisualStyleElement菜单的底部边框提供一个。 无法继承此类。
public: ref class VisualStyleElement::StartPanel::LogOff abstract sealed
public static class VisualStyleElement.StartPanel.LogOff
type VisualStyleElement.StartPanel.LogOff = class
Public Class VisualStyleElement.StartPanel.LogOff
- 继承
-
VisualStyleElement.StartPanel.LogOff
示例
下面的代码示例演示如何使用属性返回Normal的值创建 a。VisualStyleRendererVisualStyleElement 若要运行此示例,请将其粘贴到 Windows 窗体中。 处理表单 Paint 的事件,并从事件处理方法调用 DrawVisualStyleElementStartPanelLogOff1 该方法 Paint ,并传递 e 为 PaintEventArgs。
public void DrawVisualStyleElementStartPanelLogOff1(PaintEventArgs e)
{
if (VisualStyleRenderer.IsElementDefined(
VisualStyleElement.StartPanel.LogOff.Normal))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer(VisualStyleElement.StartPanel.LogOff.Normal);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
renderer.DrawBackground(e.Graphics, rectangle1);
e.Graphics.DrawString("VisualStyleElement.StartPanel.LogOff.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 DrawVisualStyleElementStartPanelLogOff1(ByVal e As PaintEventArgs)
If (VisualStyleRenderer.IsElementDefined( _
VisualStyleElement.StartPanel.LogOff.Normal)) Then
Dim renderer As New VisualStyleRenderer _
(VisualStyleElement.StartPanel.LogOff.Normal)
Dim rectangle1 As New Rectangle(10, 50, 50, 50)
renderer.DrawBackground(e.Graphics, rectangle1)
e.Graphics.DrawString("VisualStyleElement.StartPanel.LogOff.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.StartPanel.LogOff返回一个VisualStyleElement表示“开始”菜单底部边框的边框。
属性
| 名称 | 说明 |
|---|---|
| Normal |
获取表示 “开始” 菜单底部边框的视觉样式元素。 |