SystemPens::HighlightText Property
.NET Framework (current version)
Gets a Pen that is the color of the text of selected items.
Assembly: System.Drawing (in System.Drawing.dll)
Selected items may include menu items as well as selected text. For example, the pen may be the color used for the text of selected items in a list box.
The following code example demonstrates how to use the HighlightText property. To run this example, paste it into a Windows Form. Handle the form’s Paint event and call the DrawWithHighlightTextPen method from the Paint event-handling method, passing e as PaintEventArgs.
.NET Framework
Available since 1.1
Available since 1.1
Show: