ToolTipsFactory |
Gets or sets a value for the width of the tooltip border.
[Visual Basic] Public Property BorderWidth As Integer
[C#] public int BorderWidth {get; set;}
Property Value
Any Integer value greater then -1.
Overridable Layout-file
Description
This property defines the width of the tooltip border. It applies only for tooltip layouts where Border<>None.Setting BorderWidth=0 for Border<>None has the same effect as setting Border=None: No tooltip border will be rendered.
If specified at the component-level for a tooltip component (i.e. by defining the BorderWidth directly for the component), the assigned value will become the default BorderWidth for the tooltips of all controls on the same form:
'Assign a new border-width to the tooltip component
Me.MultiLine.GetMultiLineToolTip(Panel1).BorderWidth = 25
This default BorderWidth 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 BorderWidth has to be set or changed at runtime for the tooltip of a specific control, code like the following is needed:
'Override the default tooltip border-width for the tooltip border
'of Panel1...
Me.MultiLine.GetMultiLineToolTip(Panel1).Override _
.BorderOverride.BorderWidth = 1
Example 1
This statements define a textured border at the component level:
'define a 25 pixel wide textured border for the
'tooltips provided by the component (MultiLine).
Me.MultiLine.Border = BorderStyle.Texture
Me.MultiLine.BorderWidth = 25 'make the border 25 pixel wide
'load the image and assign it to the BorderTexture property...
Me.MultiLine.BorderTexture = Image.FromFile("C:\Temp\logo.jpg")