共用方式為


ControlSite Interface

Represents a linked or embedded control on a document.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
<GuidAttribute("24D873D9-33D6-4CB9-8219-04F431C6D456")> _
Public Interface ControlSite _
    Inherits IDisposable
[GuidAttribute("24D873D9-33D6-4CB9-8219-04F431C6D456")]
public interface ControlSite : IDisposable

The ControlSite type exposes the following members.

Properties

  Name Description
Public property AltHTML Infrastructure.
Public property Automation Infrastructure.
Public property Height Gets or sets the height, in points, of the ControlSite.
Public property InlineShape Gets the underlying InlineShape of the ControlSite.
Public property Left Gets or sets the distance, in points, from the left edge of the ControlSite to the left edge of the document.
Public property Name Gets or sets the name of the ControlSite.
Public property Shape Gets the underlying Shape of the ControlSite.
Public property Top Gets or sets the distance, in points, from the top edge of the ControlSite to the top of the document.
Public property Width Gets or sets the width, in points, of the ControlSite.

Top

Methods

  Name Description
Public method _VtblGap1_2 Infrastructure.
Public method _VtblGap2_2 Infrastructure.
Public method Activate Activates the ControlSite.
Public method Copy Copies the ControlSite to the Clipboard.
Public method Cut Cuts the ControlSite to the Clipboard.
Public method Delete Deletes the ControlSite.
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method Select Selects the ControlSite.

Top

Remarks

A ControlSite is returned when you use the AddControl method to add a control to a document. For more information, see Adding Controls to Office Documents at Run Time.

Note

This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.

See Also

Reference

Microsoft.Office.Tools.Word Namespace