Object Model - Additional Properties - FontHatchStyle

Gets or sets a value that specifies the hatch-pattern used to fill the tooltip text.

[Visual Basic]
Public Property FontHatchStyle As HatchStyle
public HatchStyle FontHatchStyle {get; set;}

Property Value

Any value provided by the System.Drawing.Drawing2D.HatchStyle class.



Property of
AnimationTT ImageTT SingleLineTT MultiLineTT


This value defines the hatch-pattern used to fill the tooltip text. It is only significant for layouts where TextStyle=Hatch.

The background color for the hatch pattern is defined by the FontColor-property, while the foreground color is specified by the FontHatchColor-property. The table at the end of this section shows a list of all available hatch-styles.

If specified at the component-level for a tooltip component (i.e. by defining the FontHatchStyle directly for the component), the assigned hatch-style will become the default FontHatchStyle for the tooltips of all controls on the same form:

'Assign a new background hatch pattern

'to the tooltip component

Me.MultiLine.GetMultiLineToolTip(Panel1) _

.FontHatchStyle = HatchStyle.Wave

This default FontHatchStyle can be overridden for each control through the Override-property provided to all controls on the same form by the tooltip component (see "The Override-Property").

If the override-value for the FontHatchStyle has to be set or changed at runtime for the tooltip of a specific control, code like the following is needed:

'Assign a new background hatch pattern

'to the override-object for Panel1

Me.MultiLine.GetMultiLineToolTip(Panel1).Override _

.FontLayoutOverride.FontHatchStyle = HatchStyle.Percent25

Example 1

This statements define a hatched text at the component level. A hatch pattern is selected and the background and foreground colors for the hatch pattern are defined:

'define a hatched font for the tooltips provided by the component (MultiLine).

Me.MultiLine.TextStyle = TextDrawingStyle.Hatch

'define the background color for the hatch-pattern...

Me.MultiLine.FontColor = Color.Transparent 

'...and it's foreground color.

Me.MultiLine.FontHatchColor = Color.Blue

'select the hatch-pattern

Me.MultiLine.FontHatchStyle = Drawing2D.HatchStyle.Percent50

All available HatchStyles