Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, let's say you want the entire tree to use hyperlinks. You use "ItemHyperlink[All]" to ensure all existing items behave like hyperlinks. However, let's say you add new items to the tree later. By default, these new items are not hyperlinks. To make these new items hyperlinks, you have to either set the hyperlink field for each item in the array passed to the AddItems method, or you have to use "ItemHyperlink[All]" each time you add new items. But there is an easier way.

...

Going back to our example, we can use the DefHyperlink property to establish the default hyperlink attribute for all new items. And, if we do it before we load any items, then we never have to worry about it again. So, to make an entire tree use hyperlinks, just use the following line of code during initialization:

...

Not all item attributes can have a default property, such as data and image. See below for links to all available default properties.

See Also

DefAlignmentDefCheckBoxDefColorsDefDraggableDefDroppableDefEnabledDefExpandableDefExpandedDefFontDefHeightDefHyperlinkDefSelectableDefSortDefTypeDefVisible