TrackBarRenderer.DrawLeftPointingThumb 方法

定义

以视觉样式绘制一个指向左方的跟踪条滑块(又称滚动块)。

public:
 static void DrawLeftPointingThumb(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::VisualStyles::TrackBarThumbState state);
public static void DrawLeftPointingThumb (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.TrackBarThumbState state);
static member DrawLeftPointingThumb : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.VisualStyles.TrackBarThumbState -> unit
Public Shared Sub DrawLeftPointingThumb (g As Graphics, bounds As Rectangle, state As TrackBarThumbState)

参数

g
Graphics

用于绘制跟踪条滑块的 Graphics

bounds
Rectangle

指定跟踪条滑块边界的 Rectangle

state
TrackBarThumbState

TrackBarThumbState 值之一,指定跟踪条滑块的可视状态。

例外

操作系统不支持视觉样式。

  • 或 -

用户在操作系统中禁用视觉样式。

  • 或 -

视觉样式不应用于应用程序窗口的工作区。

注解

在调用此方法之前,应验证属性的值 IsSupported 是否为 true

适用于