Düzenle

Aracılığıyla paylaş


AddIns Interface

Definition

A collection of AddIn objects that represents all the add-ins available to Microsoft Word, regardless of whether or not they're currently loaded.

public interface class AddIns : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002097F-0000-0000-C000-000000000046")]
public interface AddIns : System.Collections.IEnumerable
type AddIns = interface
    interface IEnumerable
Public Interface AddIns
Implements IEnumerable
Attributes
Implements

Remarks

The AddIns collection includes global templates or Word add-in libraries (WLLs) displayed in the Templates and Add-ins dialog box (Tools menu).

Use the AddIns property to return the AddIns collection.

Use the Add(String, Object) method to add an add-in to the list of available add-ins and (optionally) install it using the Install argument.

To install an add-in shown in the list of available add-ins, use the Installed property.

Use AddIns(index), where index is the add-in name or index number, to return a single AddIn object. You must exactly match the spelling (but not necessarily the capitalization) of the name, as it's shown in the Templates and Add-ins dialog box. To install an add-in shown in the list of available add-ins, use the Installed property.

If the add-in is not located in the User Templates, Workgroup Templates, or Startup folder, you must specify the full path and file name when indexing an add-in by name.

Use the Compiled property to determine whether an AddIn object is a template or a WLL.

Properties

Application

Returns an Application object that represents the creator of the specified object.

Count

Returns a value that indicates the number of items in the specified collection.

Creator

Returns a value that indicates the application in which the specified object was created.

Item[Object]

Returns a value that indicates the specified object in a collection.

Parent

Returns a value that represents the parent object of the specified object.

Methods

Add(String, Object)

Adds the specified file to the list of available add-ins.

GetEnumerator()
Unload(Boolean)

Unloads all loaded add-ins and optionally removes them from the AddIns collection.

Applies to