Share via


HierarchyInfo.IsExtendable Property

Definition

Gets a value indicating whether the node supports child nodes.

public:
 virtual property bool IsExtendable { bool get(); };
public virtual bool IsExtendable { get; }
member this.IsExtendable : bool
Public Overridable ReadOnly Property IsExtendable As Boolean

Property Value

true if the node is extendable; otherwise, false. The default is true.

Examples

The following example shows the simple case of a nonextendable node. It also shows how code would check to see if child nodes were supported.

public override bool IsExtendable
{
    get
    {
        return false;
    }
}
if (IsExtendable)
    AddNewNode(childNode);

Remarks

An IsExtendable property value of false indicates that the node will not accept child nodes. For more information, see the SupportsChildren property.

Applies to