TrackBarRenderer.DrawVerticalTicks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws the specified number of vertical track bar ticks with visual styles.
public:
static void DrawVerticalTicks(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, int numTicks, System::Windows::Forms::VisualStyles::EdgeStyle edgeStyle);
public static void DrawVerticalTicks (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, int numTicks, System.Windows.Forms.VisualStyles.EdgeStyle edgeStyle);
static member DrawVerticalTicks : System.Drawing.Graphics * System.Drawing.Rectangle * int * System.Windows.Forms.VisualStyles.EdgeStyle -> unit
Public Shared Sub DrawVerticalTicks (g As Graphics, bounds As Rectangle, numTicks As Integer, edgeStyle As EdgeStyle)
Parameters
- numTicks
- Int32
The number of ticks to draw.
Exceptions
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
Remarks
If width or height of the bounding rectangle or the number of ticks is less than or equal to zero, or g
is null
, DrawVerticalTicks returns without rendering.
Before calling this method, you should verify that the value of the IsSupported property is true
.