ControlSite Interface
Represents a linked or embedded control on a document.
Namespace: Microsoft.Office.Tools.Word
Assembly: 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 | |
---|---|---|
AltHTML | Infrastructure. | |
Automation | Infrastructure. | |
Height | Gets or sets the height, in points, of the ControlSite. | |
InlineShape | Gets the underlying InlineShape of the ControlSite. | |
Left | Gets or sets the distance, in points, from the left edge of the ControlSite to the left edge of the document. | |
Name | Gets or sets the name of the ControlSite. | |
Shape | Gets the underlying Shape of the ControlSite. | |
Top | Gets or sets the distance, in points, from the top edge of the ControlSite to the top of the document. | |
Width | Gets or sets the width, in points, of the ControlSite. |
Top
Methods
Name | Description | |
---|---|---|
Activate | Activates the ControlSite. | |
Copy | Copies the ControlSite to the Clipboard. | |
Cut | Cuts the ControlSite to the Clipboard. | |
Delete | Deletes the ControlSite. | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
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.