ToolTipsFactory |
Gets or sets a value which defines whether the Symbol should be placed on the left or the right side of the text in a SingleLineToolTip.
[Visual Basic] Public Property SymbolAlignment As SymbolLocation
[C#] public SymbolLocation SymbolAlignment {get; set;}
Property Value
Any value from the SymbolLocation-enumeration. Default value is SymbolLocation.Left.
Overridable Layout-file
Property of AnimationTT ImageTT SingleLineTT MultiLineTT Description
This property defines whether the Symbol should be placed on the left or the right side of the text in a SingleLineToolTip. This value applies only when a valid bitmap image is assigned to the Symbol-property.
If specified at the component-level for a tooltip component (i.e. by defining the SymbolAlignment directly for the component), the assigned value will become the default alignment for the tooltips of all controls on the same form:
'Define a new location (alignment) for the symbol to be placed next
'to the text of all tooltips shown by this component
Me.SingleLineTT.SymbolAlignment = SymbolLocation.Right
This default image for the SymbolAlignment 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 SymbolAlignment has to be set or changed at runtime for the tooltip of a specific control, code like the following is needed:
'Override the default symbol-alignment for the tooltip
'of Panel1 and assign it a new symbol...
Me.SingleLineTT.GetSingleLineToolTip(Panel1) _
.Override.Symbol = Image.FromFile("C:\Temp\FloppyDisk.png")
'...and place it on the right side of the tooltip text.
Me.SingleLineTT.GetSingleLineToolTip(Panel1) _
.Override.SymbolAlignment = SymbolLocation.Right