OLEObject Class (2007 System)
Represents a linked or embedded control on a worksheet.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class OLEObject
'Usage
Dim instance As OLEObject
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class OLEObject
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class OLEObject sealed
public final class OLEObject
Remarks
An OLEObject is returned when you use the AddControl method to add a control to the ControlCollection of a Worksheet. For more information, see Adding Controls to Office Documents at Run Time.
Inheritance Hierarchy
System.Object
Microsoft.Office.Tools.Excel.OLEObject
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.