LinkCell is TextCell for displaying hyperlinks.
For a list of all members of this type, see LinkCell Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Resco.Controls.AdvancedComboBox.Cell
Resco.Controls.AdvancedComboBox.TextCell
Resco.Controls.AdvancedComboBox.LinkCell
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The LinkCell is a TextCell capable of diplaying links. Link cells have different default ForeColor and TextFont, to get the look of the hyperlinks.
Links can fire the LinkClick event. During handling this event links change color to ActiveColor. After activation, link is marked as visited, and displayed with VisitedColor. The link state is determined from the target property, which can be indenpedent to displayed text, and is determined with the UrlFormatString property.
You can get different behavior with combination of using the CellSource, FormatString and UrlFormatString for the same data.
| Scenario | How to get it |
|---|---|
| Constant text / constant link, Target == Text | You can use Constant source of data, with FormatString and UrlFormatString both {0}. |
| Any text / constant link, Target != Text | You can use desired FormatString in conjuction with the source of data, and use constant UrlFormatString set to target (without {0} parameter), e.g. UrlFormatString = "OrderForm", when displaying product name as a text. |
| Constant text / various link, Target != Text | You can use desired UrlFormatString in conjuction with the source of data, and use constant FormatString set to displayed text (without {0} parameter), e.g. FormatString = "Buy Now!", and target is set to product id). |
| Various text / various link, Target and Text bound to same source | You can use desired UrlFormatString and FormatString in conjuction with the source of data, e.g. FormatString="{0}" and UrlFormatString = "mailto://{0}" as , when displaying e-mails. |
The target of the link denotes the state of it, so when more combinations of LinkCells with data will have the same target, all will look visited after clicking on any of them.
Namespace: Resco.Controls.AdvancedComboBox
Assembly: Resco.AdvancedComboBox.CF3 (in Resco.AdvancedComboBox.CF3.dll)
LinkCell Members | Resco.Controls.AdvancedComboBox Namespace