CounterItem.LineStyle property

Retrieves or sets the line style used to graph the counter value.

This property is read/write.

Syntax

Property LineStyle As Long

Property value

The line style used to graph the counter value. The values correspond to system constants shown in the following table.

Value Meaning
System.Drawing.Drawing2D.DashStyle.Solid
0
Solid line. This is the default value.
System.Drawing.Drawing2D.DashStyle.Dash
1
Dotted line with long segments and narrow spaces.
System.Drawing.Drawing2D.DashStyle.Dot
2
Dotted line with uniform segments and spaces.
System.Drawing.Drawing2D.DashStyle.DashDot
3
Dotted line with alternating short and long segments.
System.Drawing.Drawing2D.DashStyle.DashDotDot
4
Dotted line with alternating dashes and double dots.

Exceptions

Exception type Condition
System.ArgumentException The specified line style is not valid.

Remarks

To specify a value other than DashStyle.Solid, CounterItem.Width must be set to 1. If the width is greater than 1, SYSMON ignores the specified line style and uses DashStyle.Solid.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Sysmon.ocx

See also

CounterItem