TreeView 클래스

정의

목차와 같이 트리 구조체의 계층적 데이터를 표시합니다.

public ref class TreeView : System::Web::UI::WebControls::HierarchicalDataBoundControl, System::Web::UI::ICallbackEventHandler, System::Web::UI::IPostBackDataHandler, System::Web::UI::IPostBackEventHandler
[System.Web.UI.ControlValueProperty("SelectedValue")]
public class TreeView : System.Web.UI.WebControls.HierarchicalDataBoundControl, System.Web.UI.ICallbackEventHandler, System.Web.UI.IPostBackDataHandler, System.Web.UI.IPostBackEventHandler
[<System.Web.UI.ControlValueProperty("SelectedValue")>]
type TreeView = class
    inherit HierarchicalDataBoundControl
    interface IPostBackEventHandler
    interface IPostBackDataHandler
    interface ICallbackEventHandler
Public Class TreeView
Inherits HierarchicalDataBoundControl
Implements ICallbackEventHandler, IPostBackDataHandler, IPostBackEventHandler
상속
특성
구현

예제

이 섹션에서는 7 코드 예제가 포함 되어 있습니다.

  • 첫 번째 코드 예제에서는 두 번째 코드 예제는 프레임을 설정 하는 방법에 설명 합니다.

  • 두 번째 코드 예제에서는 선언적 구문을 사용 하 여 정적 데이터를 표시 하는 방법에 설명 합니다 TreeView 제어 합니다.

  • 세 번째 코드 예제에 바인딩하는 방법을 보여는 TreeView XML 데이터 소스를 제어 합니다.

  • 네 번째 코드 예제에서는 세 번째 코드 예제에 대 한 샘플 XML 데이터를 제공합니다.

  • 다섯 번째 코드 예제를 사용 하는 방법에 설명 합니다 TreeView 컨트롤에 바인딩하여 사이트 탐색을 위한는 SiteMapDataSource 컨트롤입니다.

  • 여섯 번째 코드 예제에서는 다섯 번째 코드 예제에 대 한 샘플 사이트 맵 데이터를 제공합니다.

  • 일곱 번째 코드 예제에서 노드를 채울 하는 방법에 설명 합니다 TreeView 클라이언트에서 제어 합니다.

다음 코드 예제에는 다음 코드 예제에 대 한 프레임을 설정 하는 방법을 보여 줍니다.


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>TreeView Frameset Example</title>
</head>
         
    <frameset cols="30%, 75%">
   
        <frame title="MenuFrame" name="Menu" src="TreeViewFramecs.aspx"/>
        <frame title="ContentFrame" name="Content" src="Home.aspx"/> 
           
    </frameset>      
   
</html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>TreeView Frameset Example</title>
</head>
         
    <frameset cols="30%, 75%">
   
        <frame title="MenuFrame" name="Menu" src="TreeViewFramevb.aspx"/>
        <frame title="ContentFrame" name="Content" src="Home.aspx"/> 
           
    </frameset>      
   
</html>

다음 코드 예제에서는 선언적 구문을 사용 하 여 정적 데이터를 표시 하는 방법에 설명 합니다 TreeView 제어 합니다. 이 예제는 목차를 표시 하려면 프레임 앞의 예제 집합 내에서 사용 됩니다.


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView Declarative Syntax Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView Declarative Syntax Example</h3>
      
      <asp:TreeView id="SampleTreeView" 
        runat="server">
         
        <Nodes>
        
          <asp:TreeNode Value="Home" 
            NavigateUrl="Home.aspx" 
            Text="Home"
            Target="Content" 
            Expanded="True">
             
            <asp:TreeNode Value="Page 1" 
              NavigateUrl="Page1.aspx" 
              Text="Page1"
              Target="Content">
               
              <asp:TreeNode Value="Section 1" 
                NavigateUrl="Section1.aspx" 
                Text="Section 1"
                Target="Content"/>
                 
            </asp:TreeNode>              
            
            <asp:TreeNode Value="Page 2" 
              NavigateUrl="Page2.aspx"
              Text="Page 2"
              Target="Content">
               
            </asp:TreeNode> 
            
          </asp:TreeNode>
        
        </Nodes>
        
      </asp:TreeView>

    </form>
  </body>
</html>

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView Declarative Syntax Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView Declarative Syntax Example</h3>
      
      <asp:TreeView id="SampleTreeView" 
        runat="server">
         
        <Nodes>
        
          <asp:TreeNode Value="Home" 
            NavigateUrl="Home.aspx" 
            Text="Home"
            Target="Content" 
            Expanded="True">
             
            <asp:TreeNode Value="Page 1" 
              NavigateUrl="Page1.aspx" 
              Text="Page1"
              Target="Content">
               
              <asp:TreeNode Value="Section 1" 
                NavigateUrl="Section1.aspx" 
                Text="Section 1"
                Target="Content"/>
                 
            </asp:TreeNode>              
            
            <asp:TreeNode Value="Page 2" 
              NavigateUrl="Page2.aspx"
              Text="Page 2"
              Target="Content">
               
            </asp:TreeNode> 
            
          </asp:TreeNode>
        
        </Nodes>
        
      </asp:TreeView>

    </form>
  </body>
</html>

다음 코드 예제에 바인딩하는 방법을 보여는 TreeView XML 데이터 소스를 제어 합니다. 이 예제가 제대로 작동 하려면에 대 한 Book.xml 라는 파일에이 코드 예제에서는 뒤에 제공 된 샘플 XML 데이터를 복사 해야 합니다.


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView XML Data Binding Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView XML Data Binding Example</h3>
    
      <asp:TreeView id="BookTreeView" 
        DataSourceID="BookXmlDataSource"
        runat="server">
         
        <DataBindings>
          <asp:TreeNodeBinding DataMember="Book" TextField="Title"/>
          <asp:TreeNodeBinding DataMember="Chapter" TextField="Heading"/>
          <asp:TreeNodeBinding DataMember="Section" TextField="Heading"/>
        </DataBindings>
         
      </asp:TreeView>

      <asp:XmlDataSource id="BookXmlDataSource"  
        DataFile="Book.xml"
        runat="server">
      </asp:XmlDataSource>
    
    </form>
  </body>
</html>

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView XML Data Binding Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView XML Data Binding Example</h3>
    
      <asp:TreeView id="BookTreeView" 
        DataSourceID="BookXmlDataSource"
        runat="server">
         
        <DataBindings>
          <asp:TreeNodeBinding DataMember="Book" TextField="Title"/>
          <asp:TreeNodeBinding DataMember="Chapter" TextField="Heading"/>
          <asp:TreeNodeBinding DataMember="Section" TextField="Heading"/>
        </DataBindings>
         
      </asp:TreeView>

      <asp:XmlDataSource id="BookXmlDataSource"  
        DataFile="Book.xml"
        runat="server">
      </asp:XmlDataSource>
    
    </form>
  </body>
</html>

다음 코드 예제에서는 앞의 예제에 대 한 샘플 XML 데이터를 제공합니다.

<Book Title="Book Title">
    <Chapter Heading="Chapter 1">
        <Section Heading="Section 1">
        </Section>
        <Section Heading="Section 2">
        </Section>
    </Chapter>
    <Chapter Heading="Chapter 2">
        <Section Heading="Section 1">
        </Section>
    </Chapter>
</Book>

다음 코드 예제를 사용 하는 방법에 설명 합니다 TreeView 컨트롤에 바인딩하여 사이트 탐색을 위한는 SiteMapDataSource 컨트롤입니다. 제대로 작동 하려면이 예제에서는 라는 Web.sitemap 파일에이 코드 예제에서는 뒤에 제공 된 샘플 사이트 맵 데이터를 복사 해야 합니다.


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView AutoGenerateBindings Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView AutoGenerateBindings Example</h3>
    
      <!-- Set the AutoGenerateBindings property -->
      <!-- to false declaratively to allow for   -->
      <!-- the user-defined Bindings collection. -->
      <asp:TreeView id="SiteTreeView" 
        DataSourceID="SiteMapSource"
        AutoGenerateDataBindings="False"
        runat="server">
        
        <DataBindings>
        
          <asp:TreeNodeBinding TextField="title" NavigateUrlField="url"/>
        
        </DataBindings>
            
      </asp:TreeView>
      
      <asp:SiteMapDataSource ID="SiteMapSource" runat="server"/>
         
    </form>
  </body>
</html>

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView AutoGenerateBindings Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView AutoGenerateBindings Example</h3>
    
      <!-- Set the AutoGenerateBindings property -->
      <!-- to false declaratively to allow for   -->
      <!-- the user-defined Bindings collection. -->
      <asp:TreeView id="SiteTreeView" 
        DataSourceID="SiteMapSource"
        AutoGenerateDataBindings="False"
        runat="server">
        
        <DataBindings>
        
          <asp:TreeNodeBinding TextField="title" NavigateUrlField="url"/>
        
        </DataBindings>
            
      </asp:TreeView>
      
      <asp:SiteMapDataSource ID="SiteMapSource" runat="server"/>
         
    </form>
  </body>
</html>

다음 코드 예제에서는 앞의 코드 예제에 대 한 샘플 사이트 맵 데이터를 제공합니다.

<siteMap>
    <siteMapNode title="Home" description="Home" url="default.aspx">
        <siteMapNode title="Products" description="Products" url="Products.aspx">
            <siteMapNode title="Computers" url="Computers.aspx"/>
            <siteMapNode title="Accessories" url="Accessories.aspx"/>
        </siteMapNode>
    </siteMapNode>
</siteMap>

다음 코드 예제에서 노드를 채울 하는 방법에 설명 합니다 TreeView 클라이언트에서 제어 합니다. 클라이언트 쪽 노드의 채우기를 사용 하는 경우 노드는 서버에 다시 게시할 필요 없이 클라이언트에서 동적으로 채워집니다.


<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  void PopulateNode(Object sender, TreeNodeEventArgs e)
  {

    // Call the appropriate method to populate a node at a particular level.
    switch(e.Node.Depth)
    {
      case 0:
        // Populate the first-level nodes.
        PopulateCategories(e.Node);
        break;
      case 1:
        // Populate the second-level nodes.
        PopulateProducts(e.Node);
        break;
      default:
        // Do nothing.
        break;
    }
    
  }

  void PopulateCategories(TreeNode node)
  {
    
    // Query for the product categories. These are the values
    // for the second-level nodes.
    DataSet ResultSet = RunQuery("Select CategoryID, CategoryName From Categories");

    // Create the second-level nodes.
    if(ResultSet.Tables.Count > 0)
    {
    
      // Iterate through and create a new node for each row in the query results.
      // Notice that the query results are stored in the table of the DataSet.
      foreach (DataRow row in ResultSet.Tables[0].Rows)
      {
        
        // Create the new node. Notice that the CategoryId is stored in the Value property 
        // of the node. This will make querying for items in a specific category easier when
        // the third-level nodes are created. 
        TreeNode newNode = new TreeNode();
        newNode.Text = row["CategoryName"].ToString(); 
        newNode.Value = row["CategoryID"].ToString();        

        // Set the PopulateOnDemand property to true so that the child nodes can be 
        // dynamically populated.
        newNode.PopulateOnDemand = true;
        
        // Set additional properties for the node.
        newNode.SelectAction = TreeNodeSelectAction.Expand;
        
        // Add the new node to the ChildNodes collection of the parent node.
        node.ChildNodes.Add(newNode);
        
      }
      
    }
    
  }

  void PopulateProducts(TreeNode node)
  {

    // Query for the products of the current category. These are the values
    // for the third-level nodes.
    DataSet ResultSet = RunQuery("Select ProductName From Products Where CategoryID=" + node.Value);

    // Create the third-level nodes.
    if(ResultSet.Tables.Count > 0)
    {
    
      // Iterate through and create a new node for each row in the query results.
      // Notice that the query results are stored in the table of the DataSet.
      foreach (DataRow row in ResultSet.Tables[0].Rows)
      {
      
        // Create the new node.
        TreeNode NewNode = new TreeNode(row["ProductName"].ToString());
        
        // Set the PopulateOnDemand property to false, because these are leaf nodes and
        // do not need to be populated.
        NewNode.PopulateOnDemand = false;
        
        // Set additional properties for the node.
        NewNode.SelectAction = TreeNodeSelectAction.None;
        
        // Add the new node to the ChildNodes collection of the parent node.
        node.ChildNodes.Add(NewNode);
        
      }
      
    }

  }

  DataSet RunQuery(String QueryString)
  {

    // Declare the connection string. This example uses Microsoft SQL Server 
    // and connects to the Northwind sample database.
    String ConnectionString = "server=localhost;database=NorthWind;Integrated Security=SSPI"; 

    SqlConnection DBConnection = new SqlConnection(ConnectionString);
    SqlDataAdapter DBAdapter;
    DataSet ResultsDataSet = new DataSet();

    try
    {

      // Run the query and create a DataSet.
      DBAdapter = new SqlDataAdapter(QueryString, DBConnection);
      DBAdapter.Fill(ResultsDataSet);

      // Close the database connection.
      DBConnection.Close();

    }
    catch(Exception ex)
    {

      // Close the database connection if it is still open.
      if(DBConnection.State == ConnectionState.Open)
      {
        DBConnection.Close();
      }
      
      Message.Text = "Unable to connect to the database.";

    }

    return ResultsDataSet;

  }

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView PopulateNodesFromClient Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView PopulateNodesFromClient Example</h3>
    
      <asp:TreeView id="LinksTreeView"
        Font-Names= "Arial"
        ForeColor="Blue"
        EnableClientScript="true"
        PopulateNodesFromClient="true"  
        OnTreeNodePopulate="PopulateNode"
        runat="server">
         
        <Nodes>
        
          <asp:TreeNode Text="Inventory" 
            SelectAction="Expand"  
            PopulateOnDemand="true"/>
        
        </Nodes>
        
      </asp:TreeView>
      
      <br /><br />
      
      <asp:Label id="Message" runat="server"/>

    </form>
  </body>
</html>

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  Sub PopulateNode(ByVal sender As Object, ByVal e As TreeNodeEventArgs)

    ' Call the appropriate method to populate a node at a particular level.
    Select Case e.Node.Depth

      Case 0
        ' Populate the first-level nodes.
        PopulateCategories(e.Node)

      Case 1
        ' Populate the second-level nodes.
        PopulateProducts(e.Node)

      Case Else
        ' Do nothing.

    End Select

  End Sub

  Sub PopulateCategories(ByVal node As TreeNode)

    ' Query for the product categories. These are the values
    ' for the second-level nodes.
    Dim ResultSet As DataSet = RunQuery("Select CategoryID, CategoryName From Categories")

    ' Create the second-level nodes.
    If ResultSet.Tables.Count > 0 Then

      ' Iterate through and create a new node for each row in the query results.
      ' Notice that the query results are stored in the table of the DataSet.
      Dim row As DataRow

      For Each row In ResultSet.Tables(0).Rows

        ' Create the new node. Notice that the CategoryId is stored in the Value property 
        ' of the node. This will make querying for items in a specific category easier when
        ' the third-level nodes are created. 
        Dim newNode As TreeNode = New TreeNode()
        Newnode.Text = row("CategoryName").ToString() 
        Newnode.Value = row("CategoryID").ToString()

        ' Set the PopulateOnDemand property to true so that the child nodes can be 
        ' dynamically populated.
        newNode.PopulateOnDemand = True

        ' Set additional properties for the node.
        newNode.SelectAction = TreeNodeSelectAction.Expand

        ' Add the new node to the ChildNodes collection of the parent node.
        node.ChildNodes.Add(newNode)

      Next

    End If

  End Sub

  Sub PopulateProducts(ByVal node As TreeNode)

    ' Query for the products of the current category. These are the values
    ' for the third-level nodes.
    Dim ResultSet As DataSet = RunQuery("Select ProductName From Products Where CategoryID=" & node.Value)

    ' Create the third-level nodes.
    If ResultSet.Tables.Count > 0 Then

      ' Iterate through and create a new node for each row in the query results.
      ' Notice that the query results are stored in the table of the DataSet.
      Dim row As DataRow

      For Each row In ResultSet.Tables(0).Rows

        ' Create the new node.
        Dim NewNode As TreeNode = New TreeNode(row("ProductName").ToString())

        ' Set the PopulateOnDemand property to false, because these are leaf nodes and
        ' do not need to be populated.
        NewNode.PopulateOnDemand = False

        ' Set additional properties for the node.
        NewNode.SelectAction = TreeNodeSelectAction.None

        ' Add the new node to the ChildNodes collection of the parent node.
        node.ChildNodes.Add(NewNode)

      Next

    End If

  End Sub

  Function RunQuery(ByVal QueryString As String) As DataSet

    ' Declare the connection string. This example uses Microsoft SQL Server 
    ' and connects to the Northwind sample database.
    Dim ConnectionString As String = "server=localhost;database=NorthWind;Integrated Security=SSPI"

    Dim DBConnection As SqlConnection = New SqlConnection(ConnectionString)
    Dim DBAdapter As SqlDataAdapter
    Dim ResultsDataSet As DataSet = New DataSet

    Try

      ' Run the query and create a DataSet.
      DBAdapter = New SqlDataAdapter(QueryString, DBConnection)
      DBAdapter.Fill(ResultsDataSet)

      ' Close the database connection.
      DBConnection.Close()

    Catch ex As Exception

      ' Close the database connection if it is still open.
      If DBConnection.State = ConnectionState.Open Then

        DBConnection.Close()

      End If

      Message.Text = "Unable to connect to the database."

    End Try

    Return ResultsDataSet

  End Function

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>TreeView PopulateNodesFromClient Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>TreeView PopulateNodesFromClient Example</h3>
    
      <asp:TreeView id="LinksTreeView"
        Font-Names= "Arial"
        ForeColor="Blue"
        EnableClientScript="true"
        PopulateNodesFromClient="true"  
        OnTreeNodePopulate="PopulateNode"
        runat="server">
         
        <Nodes>
        
          <asp:TreeNode Text="Inventory" 
            SelectAction="Expand"  
            PopulateOnDemand="true"/>
        
        </Nodes>
        
      </asp:TreeView>
      
      <br /><br />
      
      <asp:Label id="Message" runat="server"/>

    </form>
  </body>
</html>

설명

항목 내용

소개

TreeView 컨트롤 목차나 파일 디렉터리와 같은 계층적 데이터 트리 구조로 표시 하는 데 사용 되 고 다음 기능을 지원 합니다.

  • 데이터 바인딩을 XML 테이블 형식 또는 관계형 데이터에 바인딩될 컨트롤의 노드 수 있습니다.

  • 사이트의 통합을 통해 탐색을 SiteMapDataSource 제어 합니다.

  • 일반 텍스트 또는 하이퍼링크로 표시할 수 있는 노드의 텍스트입니다.

  • 에 대 한 프로그래밍 방식의 액세스를 TreeView 개체 모델 트리를 만들고, 노드를 채우고, 등 동적으로 속성을 설정 합니다.

  • (지원 되는 브라우저)에서 클라이언트 쪽 노드의 채우기입니다.

  • 각 노드 옆에 있는 확인란을 표시할 수 있습니다.

  • 테마, 사용자 정의 이미지와 스타일을 통해 모양을 사용자 지정할 수 있습니다.

    참고

    합니다 TreeView 컨트롤은 안에 사용 하도록 설계 되었습니다는 UpdatePanel 경우에만 제어 EnableClientScript 로 설정 되어 true합니다. UpdatePanel 컨트롤에서 포스트백을 사용 하 여 전체 페이지를 업데이트 하는 대신 페이지의 선택된 영역을 업데이트 하는 데 사용 됩니다. 자세한 내용은 UpdatePanel 컨트롤 개요 하 고 부분 페이지 렌더링 개요합니다.

노드

TreeView 컨트롤은 노드의 이루어집니다. 트리의 각 항목을 노드라고 하 고 표시 됩니다는 TreeNode 개체입니다. 노드 유형은 다음과 같이 정의 됩니다.

  • 다른 노드를 포함 하는 노드를 부모 노드합니다.

  • 다른 노드에 있는 노드를 자식 노드합니다.

  • 자식이 없는 노드를 리프 노드에합니다.

  • 다른 노드가 포함 되어 있지는 다른 모든 노드의 상위 노드를 루트 노드합니다.

부모와 자식 있지만 루트, 부모 노드 수 및 리프 노드는 함께 사용할 수 없습니다. 노드의 여러 시각적 및 동작 속성을 노드가 루트, 자식 또는 리프 노드 따라 결정 됩니다.

일반적인 트리 구조는 하나의 루트 노드가 있지만 TreeView 컨트롤 트리 구조에 여러 루트 노드를 추가할 수 있습니다. 제품 범주 목록와 같이 단일 루트 노드를 표시 하지 않고 항목 목록을 표시 하려는 경우에 유용 합니다.

각 노드에 Text 속성 및 Value 속성입니다. 값을 Text 속성에 표시 됩니다를 TreeView, 하는 동안를 Value 속성 노드와 연결 된 다시 게시 이벤트에 전달 되는 데이터와 같은 노드에 대 한 추가 데이터를 저장 하는.

노드를 두 가지 모드 중 하나일 수 있습니다: 선택 모드 및 탐색 모드입니다. 기본적으로 노드 선택 모드입니다. 노드 탐색 모드로 설정 합니다는 NavigateUrl 빈 문자열이 아닌 값으로 노드에 대 한 속성 (""). 노드 선택 모드로 설정 합니다는 NavigateUrl 빈 문자열로 노드에 대 한 속성 ("").

참고

성능에 영향을 줄 수 있는 제한이 일부 인터넷 브라우저를 TreeView 제어 합니다. 예를 들어 Microsoft Internet Explorer 6.0에 게시 하는 2067 문자를 URL 문자 제한이 있습니다. 노드의 URL의 문자 수가 해당 번호 보다 큰 경우 해당 노드를 확장 하면 실패 하 고 예외가 throw 되지 않습니다.

정적 데이터

가장 간단한 데이터 모델을 TreeView 컨트롤은 정적 데이터. 선언적 구문을 사용 하 여 정적 데이터를 표시 하려면 먼저 중첩 열고 닫는 <Nodes> 을 열고 닫는 태그 사이 TreeView 제어 합니다. 다음으로 중첩 하 여 트리 구조를 만듭니다 <asp:TreeNode> 요소는 태그와 닫는 사이 <Nodes> 태그입니다. 각 <asp:TreeNode> 요소 트리에서 노드를 나타내며 매핑되는 TreeNode 개체입니다. 특성을 설정 하 여 각 노드의 속성을 설정할 수는 <asp:TreeNode> 요소입니다. 자식 노드를 만들려면 추가 중첩 <asp:TreeNode> 요소는 태그와 닫는 사이 <asp:TreeNode> 부모 노드의 태그입니다.

데이터 바인딩

TreeView 컨트롤 데이터에 바인딩될 수도 있습니다. 두 방법 중 하나 사용 하 여 바인딩할 수 있습니다는 TreeView 컨트롤을 적절 한 데이터 원본 형식:

  • TreeView 제어를 구현 하는 모든 데이터 소스 컨트롤을 사용할 수는 IHierarchicalDataSource 인터페이스와 같은 XmlDataSource 컨트롤 또는 SiteMapDataSource 컨트롤입니다. 데이터 소스 컨트롤에 바인딩할 설정를 DataSourceID 의 속성을 TreeView 컨트롤을 ID 데이터 소스 컨트롤의 값입니다. TreeView 컨트롤에 자동으로 지정 된 데이터 소스 컨트롤에 바인딩합니다. 이것은 데이터 바인딩할 기본 방법입니다.

  • 합니다 TreeView 컨트롤에 바인딩될 수도 있습니다는 XmlDocument 개체 또는 DataSet 관계 개체입니다. 이러한 데이터 원본 중 하나에 바인딩할 설정를 DataSource 의 속성을 TreeView 데이터 원본에 컨트롤을 호출는 DataBind 메서드.

노드를 각 데이터 항목 (예: 몇 가지 특성을 사용 하 여 XML 요소), 여러 속성이 들어 있는 데이터 원본에 바인딩에서 반환 되는 값을 표시 하는 경우는 ToString 메서드 기본적으로 데이터 항목의 합니다. XML 요소가 아닌 경우 노드 트리의 기본 구조를 보여주지만 그렇지 않은 경우에 그다지 유용 하지는 요소 이름을 표시 합니다. 트리 노드 바인딩을 사용 하 여 지정 하 여 노드는 특정 데이터 항목 속성에 바인딩할 수 있습니다는 DataBindings 컬렉션입니다. 합니다 DataBindings 컬렉션에 포함 되어 TreeNodeBinding 데이터 항목과 데이터 항목이 바인딩되는 노드 간의 관계를 정의 하는 개체입니다. 바인딩 및 노드에 표시할 데이터 항목 속성에 대 한 조건을 지정할 수 있습니다. 트리 노드 바인딩에 대 한 자세한 내용은 참조 하세요. TreeNodeBinding합니다.

중요

악의적인 사용자 콜백 요청을 만들고 데이터를 가져올 수 있는 노드의 TreeView 페이지 개발자를 표시 하는 컨트롤입니다. 따라서 데이터의 보안 데이터 원본에 의해 구현 되어야 합니다. 사용 하지 마십시오는 MaxDataBindDepth 데이터를 숨기려면 속성입니다.

동적 노드 채우기

경우에 따라 표시할 데이터를 런타임 시 얻을 수 있는 정보에 따라 달라 지므로 또는 데이터 원본이 너무 많은 데이터를 반환 하기 때문에 정적 트리 구조를 정의 하는 데 적합 아닙니다. 이 인해는 TreeView 컨트롤은 동적 노드 채우기를 지원 합니다. 경우는 PopulateOnDemand 노드에 대 한 속성이 true, 해당 노드에 노드를 확장 하는 경우 런타임 시 채워집니다. 노드를 동적으로 채우려면에 대 한 노드를 채울 논리를 포함 하는 이벤트 처리 메서드를 정의 해야 합니다는 TreeNodePopulate 이벤트입니다.

콜백 스크립트를 지 원하는 브라우저 클라이언트 쪽 노드의 채우기를 사용할 수도 있습니다. (이 Internet Explorer 5.5 이상 및 다른 브라우저) 클라이언트 쪽 노드의 채우기 사용 하도록 설정 된 TreeView 사용자 서버로 왕복 하지 않고도 노드를 확장 하는 경우에 클라이언트 스크립트를 사용 하 여 노드를 채울 컨트롤입니다. 클라이언트 쪽 노드의 인구에 대 한 자세한 내용은 참조 하세요. PopulateNodesFromClient합니다.

사용자 인터페이스 사용자 지정

모양을 사용자 지정 하는 방법은 여러 가지는 TreeView 제어 합니다. 첫째, 각 노드 형식에 대 한 다른 스타일 (예: 글꼴 크기 및 색)을 지정할 수 있습니다.

Css 스타일 시트 ()를 사용 하 여 컨트롤의 모양을 사용자 지정 하는 경우 인라인 스타일 또는 CSS 파일, 하지만 둘 다를 사용 합니다. 인라인 스타일 및 CSS 파일을 모두 사용 하 여 예기치 않은 결과가 발생할 수 있습니다. 스타일 시트를 사용 하 여 컨트롤에 대 한 자세한 내용은 참조 하세요. 웹 서버 컨트롤 및 CSS 스타일합니다.

다음 표에서 사용할 수 있는 노드 스타일을 나열합니다.

노드 스타일 속성 Description
HoverNodeStyle 마우스 포인터 위로 가져갈 때 노드에 대 한 스타일 설정입니다.
LeafNodeStyle 리프 노드에 대 한 스타일 설정입니다.
NodeStyle 노드에 대 한 기본 스타일 설정입니다.
ParentNodeStyle 부모 노드에 대 한 스타일 설정입니다.
RootNodeStyle 루트 노드에 대 한 스타일 설정입니다.
SelectedNodeStyle 선택한 노드에 대 한 스타일 설정입니다.

트리 내에서 특정 수준의 노드의 스타일을 사용 하 여 제어할 수도 있습니다는 LevelStyles 컬렉션입니다. 컬렉션의 첫 번째 스타일 트리에서 첫 번째 수준 노드의 스타일에 해당합니다. 컬렉션의 두 번째 스타일 트리에서에서 두 번째 수준 노드의 스타일에 해당합니다. 자식 노드가 있는지 여부에 관계없이 특정 깊이의 노드가 동일한 모양을 가져야 하는 목차 스타일 탐색 메뉴 테이블을 생성하는 데 가장 자주 사용됩니다.

참고

특정 깊이 수준을 사용 하 여 스타일을 정의 하는 경우는 LevelStyles 컬렉션, 스타일을 모든 루트, 부모 또는 해당 수준에 노드에 대 한 리프 노드 스타일 설정을 재정의 합니다.

에 표시 되는 이미지를 사용자 지정 하는 컨트롤의 모양을 변경 하는 또 다른 방법은 TreeView 제어 합니다. 다음 표에 표시 된 속성을 설정 하 여 사용자 고유의 사용자 지정 컨트롤의 여러 부분에 대 한 이미지 집합을 지정할 수 있습니다.

이미지 속성 Description
CollapseImageUrl 축소 가능한 노드 표시기에 대해 표시 되는 이미지 URL입니다. 이 이미지는 일반적으로 빼기 기호 (-).
ExpandImageUrl 확장할 수 있는 노드 표시기에 대해 표시 되는 이미지 URL입니다. 이 이미지는 일반적으로 더하기 기호 (+).
LineImagesFolder 부모 노드를 자식 노드에 연결 하는 데 선 이미지가 포함 된 폴더 URL입니다. 합니다 ShowLines 속성 설정 해야 true 적용 하려면이 속성에 대 한 합니다.
NoExpandImageUrl 확장할 수 없는 노드 표시기에 대해 표시 되는 이미지 URL입니다.

참고

모든 이미지 속성을 사용자 지정할 필요가 없습니다. 이미지 속성을 명시적으로 설정 하지 않으면, 기본 제공 이미지가 사용 됩니다.

TreeView 컨트롤 또한 노드 옆에 있는 확인란을 표시할 수 있습니다. 경우는 ShowCheckBoxes 속성 이외의 다른 값으로 설정 됩니다 TreeNodeTypes.None, 지정 된 노드 형식 옆에 확인란이 표시 됩니다.

참고

합니다 ShowCheckBoxes 속성의 비트 조합으로 설정할 수는 TreeNodeTypes 열거형 멤버 값입니다.

페이지가 서버에 게시 될 때마다는 CheckedNodes 컬렉션이 선택한 노드를 사용 하 여 자동으로 채워집니다. 확인란 표시 되는 경우 사용할 수는 TreeNodeCheckChanged 이벤트를 서버에 게시 하는 확인란의 상태가 변경 될 때마다 사용자 지정 루틴을 실행 합니다.

이벤트

TreeView 컨트롤에 대해 프로그래밍할 수 있는 몇 가지 이벤트를 제공 합니다. 이렇게 하면 이벤트가 발생할 때마다 사용자 지정 루틴을 실행할 수 있습니다. 다음 표에서에서 지원 되는 이벤트를 TreeView 제어 합니다.

이벤트 Description
TreeNodeCheckChanged 발생 경우 확인란의는 TreeView 제어 서버에 게시 하는 상태를 변경 합니다.
SelectedNodeChanged TreeView 컨트롤에서 노드를 선택하면 발생합니다.
TreeNodeExpanded TreeView 컨트롤에서 노드를 확장하면 발생합니다.
TreeNodeCollapsed TreeView 컨트롤에서 노드를 축소하면 발생합니다.
TreeNodePopulate PopulateOnDemand 컨트롤에서 TreeView 속성이 true로 설정된 노드를 확장할 때 발생합니다.
TreeNodeDataBound 데이터 항목을 TreeView 컨트롤에 있는 노드에 바인딩하면 발생합니다.

스크롤

TreeView 컨트롤에 기본 제공 스크롤 없습니다. 스크롤 기능을 추가 하려면를 TreeView 에서 제어를 Panel 제어 하 고 스크롤 막대를 추가 합니다 Panel 컨트롤. 자세한 내용은 Panel 웹 서버 컨트롤 개요합니다.

접근성

이 컨트롤에 대해 기본적으로 렌더링 되는 태그 내게 필요한 옵션 표준에 맞지 않을 수 있습니다. 이 컨트롤에 대 한 내게 필요한 옵션 지원에 대 한 자세한 내용은 참조 하세요 ASP.NET 컨트롤 및 내게 필요한 옵션합니다.

선언 구문

<asp:TreeView
    AccessKey="string"
    AutoGenerateDataBindings="True|False"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
        Inset|Outset"
    BorderWidth="size"
    CollapseImageToolTip="string"
    CollapseImageUrl="uri"
    CssClass="string"
    DataSource="string"
    DataSourceID="string"
    EnableClientScript="True|False"
    Enabled="True|False"
    EnableTheming="True|False"
    EnableViewState="True|False"
    ExpandDepth="string|FullyExpand|0|1|2|3|4|5|6|7|8|9|10|11|12|13|
        14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30"
    ExpandImageToolTip="string"
    ExpandImageUrl="uri"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
       Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Height="size"
    ID="string"
    ImageSet="Custom|XPFileExplorer|Msdn|WindowsHelp|Simple|Simple2|
        BulletedList|BulletedList2|BulletedList3|BulletedList4|
        Arrows|News|Contacts|Inbox|Events|Faq"
    LineImagesFolder="string"
    MaxDataBindDepth="integer"
    NodeIndent="integer"
    NodeWrap="True|False"
    NoExpandImageUrl="uri"
    OnDataBinding="DataBinding event handler"
    OnDataBound="DataBound event handler"
    OnDisposed="Disposed event handler"
    OnInit="Init event handler"
    OnLoad="Load event handler"
    OnPreRender="PreRender event handler"
    OnSelectedNodeChanged="SelectedNodeChanged event handler"
    OnTreeNodeCheckChanged="TreeNodeCheckChanged event handler"
    OnTreeNodeCollapsed="TreeNodeCollapsed event handler"
    OnTreeNodeDataBound="TreeNodeDataBound event handler"
    OnTreeNodeExpanded="TreeNodeExpanded event handler"
    OnTreeNodePopulate="TreeNodePopulate event handler"
    OnUnload="Unload event handler"
    PathSeparator="string"
    PopulateNodesFromClient="True|False"
    runat="server"
    ShowCheckBoxes="None|Root|Parent|Leaf|All"
    ShowExpandCollapse="True|False"
    ShowLines="True|False"
    SkinID="string"
    SkipLinkText="string"
    Style="string"
    TabIndex="integer"
    Target="string"
    ToolTip="string"
    Visible="True|False"
    Width="size"
>
        <DataBindings>
                <asp:TreeNodeBinding
                    DataMember="string"
                    Depth="integer"
                    FormatString="string"
                    ImageToolTip="string"
                    ImageToolTipField="string"
                    ImageUrl="uri"
                    ImageUrlField="string"
                    NavigateUrl="uri"
                    NavigateUrlField="string"
                    PopulateOnDemand="True|False"
                    SelectAction="Select|Expand|SelectExpand|None"
                    ShowCheckBox="string"
                    Target="string"
                    TargetField="string"
                    Text="string"
                    TextField="string"
                    ToolTip="string"
                    ToolTipField="string"
                    Value="string"
                    ValueField="string"
                />
        </DataBindings>
        <HoverNodeStyle />
        <LeafNodeStyle
            BackColor="color name|#dddddd"
            BorderColor="color name|#dddddd"
            BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
                Groove|Ridge|Inset|Outset"
            BorderWidth="size"
            ChildNodesPadding="size"
            CssClass="string"
            Font-Bold="True|False"
            Font-Italic="True|False"
            Font-Names="string"
            Font-Overline="True|False"
            Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|
                Medium|Large|X-Large|XX-Large"
            Font-Strikeout="True|False"
            Font-Underline="True|False"
            ForeColor="color name|#dddddd"
            Height="size"
            HorizontalPadding="size"
            ImageUrl="uri"
            NodeSpacing="size"
            OnDisposed="Disposed event handler"
            VerticalPadding="size"
            Width="size"
        />
        <LevelStyles>
                <asp:TreeNodeStyle
                    BackColor="color name|#dddddd"
                    BorderColor="color name|#dddddd"
                    BorderStyle="NotSet|None|Dotted|Dashed|Solid|
                        Double|Groove|Ridge|Inset|Outset"
                    BorderWidth="size"
                    ChildNodesPadding="size"
                    CssClass="string"
                    Font-Bold="True|False"
                    Font-Italic="True|False"
                    Font-Names="string"
                    Font-Overline="True|False"
                    Font-Size="string|Smaller|Larger|XX-Small|
                        X-Small|Small|Medium|Large|X-Large|XX-Large"
                    Font-Strikeout="True|False"
                    Font-Underline="True|False"
                    ForeColor="color name|#dddddd"
                    Height="size"
                    HorizontalPadding="size"
                    ImageUrl="uri"
                    NodeSpacing="size"
                    OnDisposed="Disposed event handler"
                    VerticalPadding="size"
                    Width="size"
                />
        </LevelStyles>
        <Nodes>
                <asp:TreeNode
                    Checked="True|False"
                    Expanded="string"
                    ImageToolTip="string"
                    ImageUrl="uri"
                    NavigateUrl="uri"
                    PopulateOnDemand="True|False"
                    SelectAction="Select|Expand|SelectExpand|None"
                    Selected="True|False"
                    ShowCheckBox="string"
                    Target="string"
                    Text="string"
                    ToolTip="string"
                    Value="string"
>
                </asp:TreeNode>
        </Nodes>
        <NodeStyle
            BackColor="color name|#dddddd"
            BorderColor="color name|#dddddd"
            BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
                Groove|Ridge|Inset|Outset"
            BorderWidth="size"
            ChildNodesPadding="size"
            CssClass="string"
            Font-Bold="True|False"
            Font-Italic="True|False"
            Font-Names="string"
            Font-Overline="True|False"
            Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|
                Medium|Large|X-Large|XX-Large"
            Font-Strikeout="True|False"
            Font-Underline="True|False"
            ForeColor="color name|#dddddd"
            Height="size"
            HorizontalPadding="size"
            ImageUrl="uri"
            NodeSpacing="size"
            OnDisposed="Disposed event handler"
            VerticalPadding="size"
            Width="size"
        />
        <ParentNodeStyle
            BackColor="color name|#dddddd"
            BorderColor="color name|#dddddd"
            BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
                Groove|Ridge|Inset|Outset"
            BorderWidth="size"
            ChildNodesPadding="size"
            CssClass="string"
            Font-Bold="True|False"
            Font-Italic="True|False"
            Font-Names="string"
            Font-Overline="True|False"
            Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|
                Medium|Large|X-Large|XX-Large"
            Font-Strikeout="True|False"
            Font-Underline="True|False"
            ForeColor="color name|#dddddd"
            Height="size"
            HorizontalPadding="size"
            ImageUrl="uri"
            NodeSpacing="size"
            OnDisposed="Disposed event handler"
            VerticalPadding="size"
            Width="size"
        />
        <RootNodeStyle
            BackColor="color name|#dddddd"
            BorderColor="color name|#dddddd"
            BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
                Groove|Ridge|Inset|Outset"
            BorderWidth="size"
            ChildNodesPadding="size"
            CssClass="string"
            Font-Bold="True|False"
            Font-Italic="True|False"
            Font-Names="string"
            Font-Overline="True|False"
            Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|
                Medium|Large|X-Large|XX-Large"
            Font-Strikeout="True|False"
            Font-Underline="True|False"
            ForeColor="color name|#dddddd"
            Height="size"
            HorizontalPadding="size"
            ImageUrl="uri"
            NodeSpacing="size"
            OnDisposed="Disposed event handler"
            VerticalPadding="size"
            Width="size"
        />
        <SelectedNodeStyle
            BackColor="color name|#dddddd"
            BorderColor="color name|#dddddd"
            BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
                Groove|Ridge|Inset|Outset"
            BorderWidth="size"
            ChildNodesPadding="size"
            CssClass="string"
            Font-Bold="True|False"
            Font-Italic="True|False"
            Font-Names="string"
            Font-Overline="True|False"
            Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|
                Medium|Large|X-Large|XX-Large"
            Font-Strikeout="True|False"
            Font-Underline="True|False"
            ForeColor="color name|#dddddd"
            Height="size"
            HorizontalPadding="size"
            ImageUrl="uri"
            NodeSpacing="size"
            OnDisposed="Disposed event handler"
            VerticalPadding="size"
            Width="size"
        />
</asp:TreeView>

생성자

TreeView()

TreeView 클래스의 새 인스턴스를 초기화합니다.

속성

AccessKey

웹 서버 컨트롤을 빠르게 탐색할 수 있는 선택키를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Adapter

컨트롤에 대한 브라우저별 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
AppRelativeTemplateSourceDirectory

이 컨트롤이 포함된 Page 또는 UserControl 개체의 애플리케이션 상대 가상 디렉터리를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Attributes

컨트롤의 속성과 일치하지 않는 임의의 특성(렌더링하는 경우에만 해당)의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
AutoGenerateDataBindings

TreeView 컨트롤에서 트리 노드 바인딩을 자동으로 생성하는지 여부를 나타내는 값을 가져오거나 설정합니다.

BackColor

웹 서버 컨트롤의 배경색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BindingContainer

이 컨트롤의 데이터 바인딩이 포함된 컨트롤을 가져옵니다.

(다음에서 상속됨 Control)
BorderColor

웹 컨트롤의 테두리 색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderStyle

웹 서버 컨트롤의 테두리 스타일을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderWidth

웹 서버 컨트롤의 테두리 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
CheckedNodes

선택한 확인란을 표시하는 TreeNode 컨트롤의 노드를 나타내는 TreeView 개체의 컬렉션을 가져옵니다.

ChildControlsCreated

서버 컨트롤의 자식 컨트롤이 만들어졌는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ClientID

ASP.NET에서 생성하는 HTML 태그의 컨트롤 ID를 가져옵니다.

(다음에서 상속됨 Control)
ClientIDMode

ClientID 속성의 값을 생성하는 데 사용되는 알고리즘을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
ClientIDSeparator

ClientID 속성에 사용된 구분 문자를 나타내는 문자 값을 가져옵니다.

(다음에서 상속됨 Control)
CollapseImageToolTip

축소할 수 있는 노드 표시기에 대해 표시되는 이미지의 도구 설명을 가져오거나 설정합니다.

CollapseImageUrl

축소할 수 있는 노드 표시기의 사용자 지정 이미지에 대한 URL을 가져오거나 설정합니다.

Context

현재 웹 요청에 대한 서버 컨트롤과 관련된 HttpContext 개체를 가져옵니다.

(다음에서 상속됨 Control)
Controls

UI 계층 구조에서 지정된 서버 컨트롤의 자식 컨트롤을 나타내는 ControlCollection 개체를 가져옵니다.

(다음에서 상속됨 Control)
ControlStyle

웹 서버 컨트롤의 스타일을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ControlStyleCreated

Style 개체가 ControlStyle 속성에 대해 만들어졌는지 여부를 나타내는 값을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
CssClass

클라이언트의 웹 서버 컨트롤에서 렌더링한 CSS 스타일시트 클래스를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
DataBindings

데이터 항목과 데이터 항목에 바인딩된 노드 간의 관계를 정의하는 TreeNodeBinding 개체의 컬렉션을 가져옵니다.

DataItemContainer

명명 컨테이너가 IDataItemContainer를 구현할 경우 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
DataKeysContainer

명명 컨테이너가 IDataKeysControl를 구현할 경우 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
DataSource

데이터 바인딩된 컨트롤에서 데이터 항목의 목록을 검색할 소스 개체를 가져오거나 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
DataSourceID

데이터 바인딩된 컨트롤이 데이터 항목 목록을 검색하는 컨트롤의 ID를 가져오거나 설정합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
DesignMode

디자인 화면에서 컨트롤이 사용 중인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
EnableClientScript

TreeView 컨트롤이 클라이언트측 스크립트를 렌더링하여 확장 및 축소 이벤트를 처리하는지 여부를 나타내는 값을 가져오거나 설정합니다.

Enabled

웹 서버 컨트롤이 활성화되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableTheming

이 컨트롤에 테마를 적용할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableViewState

서버 컨트롤이 해당 뷰 상태와 포함하고 있는 모든 자식 컨트롤의 뷰 상태를, 요청하는 클라이언트까지 유지하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Events

컨트롤에 대한 이벤트 처리기 대리자의 목록을 가져옵니다. 이 속성은 읽기 전용입니다.

(다음에서 상속됨 Control)
ExpandDepth

TreeView 컨트롤이 처음으로 표시될 때 확장되는 수준 수를 가져오거나 설정합니다.

ExpandImageToolTip

확장할 수 있는 노드 표시기에 대해 표시되는 이미지의 도구 설명을 가져오거나 설정합니다.

ExpandImageUrl

확장할 수 있는 노드 표시기의 사용자 지정 이미지에 대한 URL을 가져오거나 설정합니다.

Font

웹 서버 컨트롤과 연결된 글꼴 속성을 가져옵니다.

(다음에서 상속됨 WebControl)
ForeColor

웹 서버 컨트롤의 전경색(보통 텍스트 색)을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
HasAttributes

컨트롤에 특성 집합이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
HasChildViewState

현재 서버 컨트롤의 자식 컨트롤에 저장된 뷰 상태 설정 값이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
Height

웹 서버 컨트롤의 높이를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
HoverNodeStyle

마우스 포인터를 노드 위에 가져가면 표시되는 노드의 모양을 설정할 수 있는 TreeNodeStyle 개체에 대한 참조를 가져옵니다.

ID

서버 컨트롤에 할당된 프로그래밍 ID를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
IdSeparator

컨트롤 식별자를 구분하는 데 사용되는 문자를 가져옵니다.

(다음에서 상속됨 Control)
ImageSet

TreeView 컨트롤에 사용할 이미지 그룹을 가져오거나 설정합니다.

Initialized

데이터 바인딩된 컨트롤이 초기화되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsBoundUsingDataSourceID

DataSourceID 속성이 설정되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsChildControlStateCleared

이 컨트롤에 포함된 컨트롤이 컨트롤 상태를 가지는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsDataBindingAutomatic

데이터 바인딩이 자동인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsEnabled

컨트롤을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
IsTrackingViewState

서버 컨트롤에서 해당 뷰 상태의 변경 사항을 저장하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsUsingModelBinders

파생 클래스에서 구현된 경우 컨트롤이 모델 바인더를 사용 중인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsViewStateEnabled

이 컨트롤의 뷰 상태를 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
LeafNodeStyle

리프 노드의 모양을 설정할 수 있는 TreeNodeStyle 개체에 대한 참조를 가져옵니다.

LevelStyles

트리의 개별 수준에 있는 노드 스타일을 나타내는 Style 개체의 컬렉션을 가져옵니다.

LineImagesFolder

자식 노드를 부모 노드에 연결하는 데 사용되는 선 이미지가 포함된 폴더에 대한 경로를 가져오거나 설정합니다.

LoadViewStateByID

인덱스 대신 ID별로 뷰 상태를 로드할 때 컨트롤이 참여하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
MaxDataBindDepth

TreeView 컨트롤에 바인딩할 최대 트리 수준 수를 가져오거나 설정합니다.

NamingContainer

동일한 ID 속성 값을 사용하는 서버 컨트롤을 구별하기 위해 고유의 네임스페이스를 만드는 서버 컨트롤의 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
NodeIndent

TreeView 컨트롤의 자식 노드에 대한 들여쓰기 정도(픽셀)를 가져오거나 설정합니다.

Nodes

TreeNode 컨트롤에 있는 루트 노드를 나타내는 TreeView 개체의 컬렉션을 가져옵니다.

NodeStyle

TreeNodeStyle 컨트롤에 있는 노드의 기본 모양을 설정하는 데 사용할 수 있는 TreeView 개체에 대한 참조를 가져옵니다.

NodeWrap

노드의 공간이 부족할 때 노드에서 텍스트를 줄 바꿈할지 여부를 나타내는 값을 가져오거나 설정합니다.

NoExpandImageUrl

확장할 수 없는 노드 표시기의 사용자 지정 이미지에 대한 URL을 가져오거나 설정합니다.

Page

서버 컨트롤이 들어 있는 Page 인스턴스에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
Parent

페이지 컨트롤 계층 구조에서 서버 컨트롤의 부모 컨트롤에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
ParentNodeStyle

TreeNodeStyle 컨트롤에 있는 부모 노드의 모양을 설정하는 데 사용할 수 있는 TreeView 개체에 대한 참조를 가져옵니다.

PathSeparator

ValuePath 속성에 의해 지정된 노드 값을 구분하는 데 사용되는 문자를 가져오거나 설정합니다.

PopulateNodesFromClient

클라이언트의 요청이 있을 때 노드 데이터가 채워질지 여부를 나타내는 값을 가져오거나 설정합니다.

RenderingCompatibility

렌더링된 HTML이 호환될 ASP.NET 버전을 지정하는 값을 가져옵니다.

(다음에서 상속됨 Control)
RequiresDataBinding

DataBind() 메서드를 호출해야 할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
RootNodeStyle

TreeNodeStyle 컨트롤에 있는 루트 노드의 모양을 설정하는 데 사용할 수 있는 TreeView 개체에 대한 참조를 가져옵니다.

SelectedNode

TreeNode 컨트롤에서 선택된 노드를 나타내는 TreeView 개체를 가져옵니다.

SelectedNodeStyle

TreeNodeStyle 컨트롤에서 선택한 노드의 모양을 제어하는 TreeView 개체를 가져옵니다.

SelectedValue

선택한 노드의 값을 가져옵니다.

ShowCheckBoxes

TreeView 컨트롤에 확인란을 표시할 노드 형식을 나타내는 값을 가져오거나 설정합니다.

ShowExpandCollapse

확장 노드 표시기가 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

ShowLines

자식 노드를 부모 노드에 연결하는 선이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

Site

디자인 화면에서 렌더링될 때 현재 컨트롤을 호스팅하는 컨테이너 관련 정보를 가져옵니다.

(다음에서 상속됨 Control)
SkinID

컨트롤에 적용할 스킨을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
SkipLinkText

컨트롤의 내용을 건너뛰기 위해 화면 판독기에 대한 대체 텍스트를 렌더링하는 데 사용되는 값을 가져오거나 설정합니다.

Style

웹 서버 컨트롤의 외부 태그에서 스타일 특성으로 렌더링할 텍스트 특성의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
SupportsDisabledAttribute

컨트롤의 IsEnabled 속성이 false인 경우 컨트롤이 렌더링된 HTML 요소의 disabled 특성을 "disabled"로 설정할지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
TabIndex

웹 서버 컨트롤의 탭 인덱스를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
TagKey

HtmlTextWriterTag 컨트롤에 대한 TreeView 값을 가져옵니다.

TagName

컨트롤 태그의 이름을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
Target

노드에 연결된 웹 페이지 내용을 표시할 대상 창이나 프레임을 가져오거나 설정합니다.

TemplateControl

이 컨트롤이 포함된 템플릿의 참조를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
TemplateSourceDirectory

Page 또는 현재 서버 컨트롤이 들어 있는 UserControl의 가상 디렉터리를 가져옵니다.

(다음에서 상속됨 Control)
ToolTip

마우스 포인터를 웹 서버 컨트롤 위로 가져갈 때 표시되는 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
UniqueID

서버 컨트롤에 대해 계층적으로 정규화된 고유 식별자를 가져옵니다.

(다음에서 상속됨 Control)
ValidateRequestMode

잠재적으로 위험한 값이 있는지 확인하기 위해 컨트롤에서 브라우저의 클라이언트 입력을 검사하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
ViewState

같은 페이지에 대한 여러 개의 요청 전반에 서버 컨트롤의 뷰 상태를 저장하고 복원할 수 있도록 하는 상태 정보 사전을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateIgnoresCase

StateBag 개체가 대/소문자를 구분하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateMode

이 컨트롤의 뷰 상태 모드를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Visible

페이지에서 컨트롤이 UI로 렌더링되는지 여부를 나타내는 값을 가져오거나 설정합니다.

Width

웹 서버 컨트롤의 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)

메서드

AddAttributesToRender(HtmlTextWriter)

지정된 HtmlTextWriter 컨트롤에 렌더링되어야 하는 HTML 특성과 스타일을 추가합니다.

AddedControl(Control, Int32)

자식 컨트롤이 Control 개체의 Controls 컬렉션에 추가된 후 호출됩니다.

(다음에서 상속됨 Control)
AddParsedSubObject(Object)

XML 또는 HTML 요소가 구문 분석되었음을 서버 컨트롤에 알리고 서버 컨트롤의 ControlCollection 개체에 요소를 추가합니다.

(다음에서 상속됨 Control)
ApplyStyle(Style)

지정된 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하고 컨트롤의 기존 스타일 요소를 덮어씁니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ApplyStyleSheetSkin(Page)

페이지 스타일시트에 정의된 스타일 속성을 컨트롤에 적용합니다.

(다음에서 상속됨 Control)
BeginRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 시작합니다.

(다음에서 상속됨 Control)
BuildProfileTree(String, Boolean)

서버 컨트롤에 대한 정보를 수집하고, 페이지에 대해 추적이 활성화된 경우 표시할 Trace 속성에 이 정보를 전달합니다.

(다음에서 상속됨 Control)
ClearCachedClientID()

캐시된 ClientID 값을 null로 설정합니다.

(다음에서 상속됨 Control)
ClearChildControlState()

서버 컨트롤의 자식 컨트롤에 대한 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildState()

서버 컨트롤의 모든 자식 컨트롤에 대한 뷰 상태 정보와 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildViewState()

서버 컨트롤의 모든 자식 컨트롤에 대한 뷰 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearEffectiveClientIDMode()

현재 컨트롤 인스턴스 및 자식 컨트롤의 ClientIDMode 속성을 Inherit로 설정합니다.

(다음에서 상속됨 Control)
CollapseAll()

트리의 모든 노드를 닫습니다.

ConfirmInitState()

데이터 바인딩된 컨트롤의 초기화 상태를 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
CopyBaseAttributes(WebControl)

Style 개체에 캡슐화하지 않은 속성을 지정된 웹 서버 컨트롤에서 이 메서드가 호출된 원본 웹 서버 컨트롤에 복사합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
CreateChildControls()

다시 게시 또는 렌더링하기 위한 준비 작업으로, 포함된 자식 컨트롤을 만들도록 컴퍼지션 기반 구현을 사용하는 서버 컨트롤에 알리기 위해 ASP.NET 페이지 프레임워크에 의해 호출됩니다.

(다음에서 상속됨 Control)
CreateControlCollection()

자식 컨트롤을 저장할 컬렉션을 만듭니다.

CreateControlStyle()

WebControl 클래스에서 모든 스타일 관련 속성을 구현하기 위해 내부적으로 사용되는 스타일 개체를 만듭니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
CreateNode()

TreeNode 클래스의 새 인스턴스를 반환합니다. CreateNode()는 도우미 메서드입니다.

DataBind()

기본 클래스의 DataBind() 메서드를 호출합니다.

DataBind(Boolean)

DataBinding 이벤트를 발생시키는 옵션을 사용하여, 호출된 서버 컨트롤과 모든 자식 컨트롤에 데이터 소스를 바인딩합니다.

(다음에서 상속됨 Control)
DataBindChildren()

데이터 소스를 서버 컨트롤의 자식 컨트롤에 바인딩합니다.

(다음에서 상속됨 Control)
Dispose()

서버 컨트롤이 메모리에서 해제되기 전에 해당 서버 컨트롤에서 최종 정리 작업을 수행하도록 합니다.

(다음에서 상속됨 Control)
EndRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 종료합니다.

(다음에서 상속됨 Control)
EnsureChildControls()

서버 컨트롤에 자식 컨트롤이 있는지 확인합니다. 서버 컨트롤에 자식 컨트롤이 없으면 자식 컨트롤을 만듭니다.

(다음에서 상속됨 Control)
EnsureDataBound()

DataBind() 속성이 설정되어 있고 데이터 바인딩된 컨트롤이 바인딩이 필요한 것으로 표시된 경우 DataSourceID 메서드를 호출합니다.

(다음에서 상속됨 BaseDataBoundControl)
EnsureID()

ID가 할당되지 않은 컨트롤의 ID를 만듭니다.

(다음에서 상속됨 Control)
Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
ExpandAll()

트리의 모든 노드를 엽니다.

FindControl(String)

지정된 id 매개 변수를 사용하여 서버 컨트롤의 현재 명명 컨테이너를 검색합니다.

(다음에서 상속됨 Control)
FindControl(String, Int32)

현재 명명 컨테이너에서 특정 id와 함께 pathOffset 매개 변수에 지정된 검색용 정수를 사용하여 서버 컨트롤을 검색합니다. 이 버전의 FindControl 메서드를 재정의해서는 안됩니다.

(다음에서 상속됨 Control)
FindNode(String)

지정된 값 경로에서 TreeNode 컨트롤의 TreeView 개체를 검색합니다.

Focus()

컨트롤에 입력 포커스를 설정합니다.

(다음에서 상속됨 Control)
GetCallbackResult()

컨트롤을 대상으로 하는 콜백 이벤트의 결과를 반환합니다.

GetData(String)

데이터 바인딩된 컨트롤에서 데이터 작업을 수행하는 데 사용하는 HierarchicalDataSourceView 개체를 검색합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
GetDataSource()

데이터 바인딩된 컨트롤이 연결되어 있는 IHierarchicalDataSource(있는 경우)를 검색합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
GetDesignModeState()

컨트롤의 디자인 타임 데이터를 가져옵니다.

(다음에서 상속됨 Control)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetRouteUrl(Object)

루트 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(RouteValueDictionary)

루트 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, Object)

루트 매개 변수 집합 및 루트 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, RouteValueDictionary)

루트 매개 변수 집합 및 루트 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetUniqueIDRelativeTo(Control)

지정된 컨트롤의 UniqueID 속성에서 접두사 부분을 반환합니다.

(다음에서 상속됨 Control)
HasControls()

서버 컨트롤에 자식 컨트롤이 있는지 확인합니다.

(다음에서 상속됨 Control)
HasEvents()

이벤트가 컨트롤이나 자식 컨트롤에 등록되었는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Control)
IsLiteralContent()

서버 컨트롤에 리터럴 내용만 저장되어 있는지 확인합니다.

(다음에서 상속됨 Control)
LoadControlState(Object)

SaveControlState() 메서드에서 저장한 이전 페이지 요청에서 컨트롤 상태 정보를 복원합니다.

(다음에서 상속됨 Control)
LoadPostData(String, NameValueCollection)

TreeView 컨트롤의 포스트백 데이터를 처리합니다.

LoadViewState(Object)

이전에 저장된 TreeView 컨트롤의 뷰 상태를 로드합니다.

MapPathSecure(String)

가상 경로(절대 또는 상대)가 매핑되는 실제 경로를 가져옵니다.

(다음에서 상속됨 Control)
MarkAsDataBound()

뷰 상태의 컨트롤 상태를 데이터에 바인딩된 상태로 설정합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MergeStyle(Style)

지정된 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하지만 컨트롤의 기존 요소를 덮어쓰지 않습니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
OnBubbleEvent(Object, EventArgs)

서버 컨트롤의 이벤트가 페이지의 UI 서버 컨트롤 계층 구조에 전달되었는지 여부를 확인합니다.

(다음에서 상속됨 Control)
OnDataBinding(EventArgs)

DataBinding 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnDataBound(EventArgs)

DataBound 이벤트를 발생시킵니다.

(다음에서 상속됨 BaseDataBoundControl)
OnDataPropertyChanged()

기본 데이터 소스 ID 속성 중 하나가 변경되면 데이터 바인딩된 컨트롤을 해당 데이터에 다시 바인딩하기 위해 호출됩니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
OnDataSourceChanged(Object, EventArgs)

데이터 바인딩된 컨트롤과 함께 사용되는 IHierarchicalDataSource 인스턴스에서 DataSourceChanged 이벤트를 발생시키면 호출됩니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
OnInit(EventArgs)

Init 이벤트를 발생시킵니다.

OnLoad(EventArgs)

Load 이벤트를 처리합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
OnPagePreLoad(Object, EventArgs)

컨트롤이 로드되기 전에 데이터 바인딩된 컨트롤의 초기화된 상태를 설정합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
OnPreRender(EventArgs)

PreRender 이벤트를 발생시킵니다.

OnSelectedNodeChanged(EventArgs)

SelectedNodeChanged 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnTreeNodeCheckChanged(TreeNodeEventArgs)

TreeNodeCheckChanged 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnTreeNodeCollapsed(TreeNodeEventArgs)

TreeNodeCollapsed 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnTreeNodeDataBound(TreeNodeEventArgs)

TreeNodeDataBound 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnTreeNodeExpanded(TreeNodeEventArgs)

TreeNodeExpanded 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnTreeNodePopulate(TreeNodeEventArgs)

TreeNodePopulate 컨트롤의 TreeView 이벤트를 발생시킵니다.

OnUnload(EventArgs)

Unload 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OpenFile(String)

파일을 읽는 데 사용되는 Stream을 가져옵니다.

(다음에서 상속됨 Control)
PerformDataBinding()

데이터 소스에 기반하여 모든 노드를 만듭니다.

PerformSelect()

연결된 데이터 원본에서 데이터를 검색합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)
RaiseBubbleEvent(Object, EventArgs)

이벤트 소스와 해당 정보를 컨트롤의 부모 컨트롤에 할당합니다.

(다음에서 상속됨 Control)
RaiseCallbackEvent(String)

지정된 인수를 사용하여 콜백 이벤트를 발생시킵니다.

RaisePostBackEvent(String)

폼이 서버에 게시될 때 발생하는 이벤트를 TreeView 컨트롤에서 처리할 수 있도록 합니다. RaisePostBackEvent(String) 메서드는 ICallbackEventHandler.RaiseCallbackEvent(String) 메서드의 도우미 메서드입니다.

RaisePostDataChangedEvent()

ASP.NET 애플리케이션에 TreeView 컨트롤의 상태가 변경되었음을 알리기 위해 컨트롤에 신호를 보냅니다.

RemovedControl(Control)

자식 컨트롤이 Control 개체의 Controls 컬렉션에서 제거된 후 호출됩니다.

(다음에서 상속됨 Control)
Render(HtmlTextWriter)

이 컨트롤을 지정된 HTML 작성기에 렌더링합니다.

(다음에서 상속됨 WebControl)
RenderBeginTag(HtmlTextWriter)

지정된 작성기에 컨트롤의 HTML 여는 태그를 렌더링합니다.

RenderChildren(HtmlTextWriter)

클라이언트에서 렌더링될 내용을 쓰는 제공된 HtmlTextWriter 개체에 서버 컨트롤 자식의 내용을 출력합니다.

(다음에서 상속됨 Control)
RenderContents(HtmlTextWriter)

노드를 TreeView 컨트롤에 렌더링합니다.

RenderControl(HtmlTextWriter)

제공된 HtmlTextWriter 개체로 서버 컨트롤 콘텐츠를 출력하고 추적을 사용하는 경우 컨트롤에 대한 추적 정보를 저장합니다.

(다음에서 상속됨 Control)
RenderControl(HtmlTextWriter, ControlAdapter)

제공된 HtmlTextWriter 개체를 사용하여 제공된 ControlAdapter 개체에 서버 컨트롤 콘텐츠를 출력합니다.

(다음에서 상속됨 Control)
RenderEndTag(HtmlTextWriter)

지정된 작성기에 컨트롤의 HTML 닫는 태그를 렌더링합니다.

ResolveAdapter()

지정된 컨트롤을 렌더링하는 컨트롤 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
ResolveClientUrl(String)

브라우저에 사용할 수 있는 URL을 가져옵니다.

(다음에서 상속됨 Control)
ResolveUrl(String)

URL을 요청 클라이언트에서 사용할 수 있는 URL로 변환합니다.

(다음에서 상속됨 Control)
SaveControlState()

페이지가 서버에 다시 게시된 후 발생한 서버 컨트롤 상태의 변경을 저장합니다.

(다음에서 상속됨 Control)
SaveViewState()

TreeView컨트롤의 상태를 저장합니다.

SetDesignModeState(IDictionary)

컨트롤에 대한 디자인 타임 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetNodeDataBound(TreeNode, Boolean)

파생 클래스를 사용하여 지정된 TreeNode 컨트롤이 데이터 바인딩되었는지 여부를 설정할 수 있습니다.

SetNodeDataItem(TreeNode, Object)

파생 클래스를 사용하여 지정된 TreeNode 컨트롤의 데이터 항목을 설정할 수 있습니다.

SetNodeDataPath(TreeNode, String)

파생 클래스를 사용하여 지정된 TreeNode 컨트롤의 데이터 경로를 설정할 수 있습니다.

SetRenderMethodDelegate(RenderMethod)

이벤트 처리기 대리자를 할당하여 서버 컨트롤과 그 콘텐츠를 부모 컨트롤로 렌더링합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object)

추적 데이터 키와 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object, Object)

추적 개체, 추적 데이터 키와 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
TrackViewState()

TreeView 컨트롤의 뷰 상태 변경 내용을 컨트롤의 StateBag 개체에 저장할 수 있도록 추적합니다. StateBagViewState 속성을 통해 액세스할 수 있습니다.

ValidateDataSource(Object)

데이터 바인딩된 컨트롤에 바인딩할 개체가 함께 동작 가능한 개체인지 확인합니다.

(다음에서 상속됨 HierarchicalDataBoundControl)

이벤트

DataBinding

서버 컨트롤에서 데이터 소스에 바인딩할 때 발생합니다.

(다음에서 상속됨 Control)
DataBound

서버 컨트롤이 데이터 소스에 바인딩된 후에 발생합니다.

(다음에서 상속됨 BaseDataBoundControl)
Disposed

ASP.NET 페이지가 요청될 때 서버 컨트롤 주기의 마지막 단계로 서버 컨트롤이 메모리에서 해제될 때 발생합니다.

(다음에서 상속됨 Control)
Init

서버 컨트롤 주기의 첫 단계로 서버 컨트롤을 초기화할 때 이 이벤트가 발생합니다.

(다음에서 상속됨 Control)
Load

Page 개체에 서버 컨트롤을 로드할 때 발생합니다.

(다음에서 상속됨 Control)
PreRender

Control 개체가 로드된 후, 렌더링 전에 발생합니다.

(다음에서 상속됨 Control)
SelectedNodeChanged

TreeView 컨트롤에서 노드를 선택하면 발생합니다.

TreeNodeCheckChanged

서버에 대한 게시 사이에 TreeView 컨트롤의 확인란 상태가 변경될 때 발생합니다.

TreeNodeCollapsed

TreeView 컨트롤에서 노드를 축소하면 발생합니다.

TreeNodeDataBound

데이터 항목을 TreeView 컨트롤에 있는 노드에 바인딩하면 발생합니다.

TreeNodeExpanded

TreeView 컨트롤에서 노드를 확장하면 발생합니다.

TreeNodePopulate

PopulateOnDemand 컨트롤에서 TreeView 속성이 true로 설정된 노드를 확장할 때 발생합니다.

Unload

서버 컨트롤이 메모리에서 언로드될 때 발생합니다.

(다음에서 상속됨 Control)

명시적 인터페이스 구현

IAttributeAccessor.GetAttribute(String)

지정한 이름이 있는 웹 컨트롤의 특성을 가져옵니다.

(다음에서 상속됨 WebControl)
IAttributeAccessor.SetAttribute(String, String)

웹 컨트롤의 특성을 지정한 이름과 값으로 설정합니다.

(다음에서 상속됨 WebControl)
ICallbackEventHandler.GetCallbackResult()

컨트롤을 대상으로 하는 콜백 이벤트의 결과를 반환합니다.

ICallbackEventHandler.RaiseCallbackEvent(String)

지정된 인수를 사용하여 콜백 이벤트를 발생시킵니다.

IControlBuilderAccessor.ControlBuilder

이 멤버에 대한 설명은 ControlBuilder를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.GetDesignModeState()

이 멤버에 대한 설명은 GetDesignModeState()를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary)

이 멤버에 대한 설명은 SetDesignModeState(IDictionary)를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.SetOwnerControl(Control)

이 멤버에 대한 설명은 SetOwnerControl(Control)를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.UserData

이 멤버에 대한 설명은 UserData를 참조하세요.

(다음에서 상속됨 Control)
IDataBindingsAccessor.DataBindings

이 멤버에 대한 설명은 DataBindings를 참조하세요.

(다음에서 상속됨 Control)
IDataBindingsAccessor.HasDataBindings

이 멤버에 대한 설명은 HasDataBindings를 참조하세요.

(다음에서 상속됨 Control)
IExpressionsAccessor.Expressions

이 멤버에 대한 설명은 Expressions를 참조하세요.

(다음에서 상속됨 Control)
IExpressionsAccessor.HasExpressions

이 멤버에 대한 설명은 HasExpressions를 참조하세요.

(다음에서 상속됨 Control)
IParserAccessor.AddParsedSubObject(Object)

이 멤버에 대한 설명은 AddParsedSubObject(Object)를 참조하세요.

(다음에서 상속됨 Control)
IPostBackDataHandler.LoadPostData(String, NameValueCollection)

TreeView 컨트롤의 포스트백 데이터를 처리합니다.

IPostBackDataHandler.RaisePostDataChangedEvent()

ASP.NET 애플리케이션에 TreeView 컨트롤의 상태가 변경되었음을 알리기 위해 컨트롤에 신호를 보냅니다.

IPostBackEventHandler.RaisePostBackEvent(String)

폼이 서버에 게시될 때 발생하는 이벤트를 TreeView 컨트롤에서 처리할 수 있도록 합니다.

확장 메서드

EnablePersistedSelection(BaseDataBoundControl)
사용되지 않음.

선택 및 페이징을 지원하는 데이터 컨트롤에서 선택 영역이 유지되도록 합니다.

FindDataSourceControl(Control)

지정된 컨트롤에 대한 데이터 컨트롤에 연결된 데이터 소스를 반환합니다.

FindFieldTemplate(Control, String)

지정된 컨트롤의 명명 컨테이너에서 지정된 열에 대한 필드 템플릿을 반환합니다.

FindMetaTable(Control)

상위 데이터 컨트롤에 대한 메타테이블 개체를 반환합니다.

적용 대상

추가 정보