ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / TreeView Class / Source Property






In This Topic
    Source Property (TreeView)
    In This Topic
    Gets or sets the array that contains the items in TreeView. Arrays usually have a hierarchical structure with items that contain child items. There is no fixed limit to the depth of the items.
    Syntax
    'Declaration
     
    
    <JsonAttribute("ItemsSource")>
    <JsonConverterAttribute(C1.Web.Mvc.I.bn)>
    Public Property Source As System.Collections.Generic.IEnumerable(Of Object)
    'Usage
     
    
    Dim instance As TreeView
    Dim value As System.Collections.Generic.IEnumerable(Of Object)
     
    instance.Source = value
     
    value = instance.Source
    [Json("ItemsSource")]
    [JsonConverter(C1.Web.Mvc.I.bn)]
    public System.Collections.Generic.IEnumerable<object> Source {get; set;}
    public read-write property Source: System.Collections.Generic.IEnumerable; 
    JsonAttribute("ItemsSource")
    JsonConverterAttribute(C1.Web.Mvc.I.bn)
    public function get,set Source : System.Collections.Generic.IEnumerable
    [Json("ItemsSource")]
    [JsonConverter(C1.Web.Mvc.I.bn)]
    public: __property System.Collections.Generic.IEnumerable<Object*>* get_Source();
    public: __property void set_Source( 
       System.Collections.Generic.IEnumerable<Object*>* value
    );
    [Json("ItemsSource")]
    [JsonConverter(C1.Web.Mvc.I.bn)]
    public:
    property System.Collections.Generic.IEnumerable<Object^>^ Source {
       System.Collections.Generic.IEnumerable<Object^>^ get();
       void set (    System.Collections.Generic.IEnumerable<Object^>^ value);
    }
    See Also