Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.Net Framework 3.5

Other versions are also available for the following:
Visual Studio Tools for Office API Reference
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)
Visual Basic (Declaration)
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class OLEControl
Visual Basic (Usage)
Dim instance As OLEControl
C#
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class OLEControl

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.

System..::.Object
  Microsoft.Office.Tools.Word..::.OLEControl
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker