Compartilhar via


ControlSite Interface

Definition

Represents a linked or embedded control on a document.

public interface class ControlSite : IDisposable
[System.Runtime.InteropServices.Guid("24D873D9-33D6-4CB9-8219-04F431C6D456")]
public interface ControlSite : IDisposable
[<System.Runtime.InteropServices.Guid("24D873D9-33D6-4CB9-8219-04F431C6D456")>]
type ControlSite = interface
    interface IDisposable
Public Interface ControlSite
Implements IDisposable
Attributes
Implements

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.

Properties

AltHTML
Automation
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.

Methods

Activate()

Activates the ControlSite.

Copy()

Copies the ControlSite to the Clipboard.

Cut()

Cuts the ControlSite to the Clipboard.

Delete()

Deletes the ControlSite.

Select()

Selects the ControlSite.

Applies to