Method XbpTreeViewItem():setCaption() Foundation

Specifies a new caption.

Syntax
ASSIGN METHOD :setCaption( <cCaption> ) --> lSuccess
Parameters
<cCaption>
<cCaption> is the character string which is displayed as the caption.
Return

This method returns .T. (true) if the caption could be updated, otherwise it returns .F. (false).

Description

The method :setCaption() changes the caption for the XbpTreeViewItem object after the method :create() has been executed. The caption can be updated while the object is visible in the tree view.

This method is the ASSIGN method of the member variable :caption. It is called automatically whenever a value is assigned to :caption. Xbase++ applications need not call this method directly. Instead, the value contained in the :caption instance variable should be manipulated.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.