Compartilhar via


TreeView Class

Definition

Represents a Windows Forms TreeView that can be added to a Microsoft Office Word document.

public ref class TreeView : System::Windows::Forms::TreeView
[System.ComponentModel.DefaultEvent("AfterSelect")]
[System.ComponentModel.DefaultProperty("Nodes")]
[System.ComponentModel.ToolboxItem(false)]
public class TreeView : System.Windows.Forms.TreeView
[<System.ComponentModel.DefaultEvent("AfterSelect")>]
[<System.ComponentModel.DefaultProperty("Nodes")>]
[<System.ComponentModel.ToolboxItem(false)>]
type TreeView = class
    inherit TreeView
Public Class TreeView
Inherits TreeView
Inheritance
TreeView
Attributes

Remarks

The Microsoft.Office.Tools.Word.Controls.TreeView is different from a System.Windows.Forms.TreeView. The Microsoft.Office.Tools.Word.Controls.TreeView has additional members that enable it to be added to a Word document and that give it additional methods and properties.

Do not use the constructor to create a new TreeView. Use the AddTreeView method to add a new TreeView to a document.

Properties

AltHTML
Automation
Bottom

Gets the distance, in points, between the bottom edge of the TreeView and the top edge of the document.

Height

Gets or sets the height of the TreeView.

InlineShape

Gets the underlying InlineShape of the TreeView.

Left

Gets or sets the distance, in points, between the left edge of the TreeView and the left edge of the document.

Right

Gets the distance, in points, between the right edge of the TreeView and the left edge of the document.

Shape

Gets the underlying Shape of the TreeView.

Top

Gets or sets the distance, in points, between the top edge of the TreeView and the top edge of the document.

Width

Gets or sets the width of the TreeView in points.

Methods

Activate()

Activates the TreeView.

Delete()

Deletes a dynamically created TreeView from the document and removes it from the ControlCollection.

Select()

Selects the TreeView.

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
SetVisibleCore(Boolean)

Applies to