OLEControl Class (2007 System)

Represents a linked or embedded control on a document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class OLEControl
'Usage
Dim instance As OLEControl
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class OLEControl
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class OLEControl sealed
public final class OLEControl

Remarks

An OLEControl is returned when you use the AddControl method to add a control to the ControlCollection of a Document. For more information, see Adding Controls to Office Documents at Run Time.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Tools.Word.OLEControl

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

OLEControl Members

Microsoft.Office.Tools.Word Namespace