Compartilhar via


ListView Class

Definition

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

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

Remarks

The Microsoft.Office.Tools.Word.Controls.ListView is different from a System.Windows.Forms.ListView. The Microsoft.Office.Tools.Word.Controls.ListView 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 ListView. Use the AddListView method to add a new ListView to a document.

Properties

AltHTML
Automation
Bottom

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

Height

Gets or sets the height of the ListView.

InlineShape

Gets the underlying InlineShape of the ListView.

Left

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

Right

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

Shape

Gets the underlying Shape of the ListView.

Top

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

Width

Gets or sets the width of the ListView in points.

Methods

Activate()

Activates the ListView.

Delete()

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

Select()

Selects the ListView.

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

Applies to