InlineShapes Interface
A collection of InlineShape objects that represent all the inline shapes in a document, range, or selection.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Public Class nlineShapesImplementation
Implements InlineShapes
End Class
Dim nlineShapesImplementation1 As New nlineShapesImplementation()
Syntax
Public Interface InlineShapes
Inherits IEnumerable
public interface InlineShapes : IEnumerable
public interface class InlineShapes : public IEnumerable
public interface InlineShapes implements IEnumerable
public interface InlineShapes implements IEnumerable
Remarks
Use the InlineShapes property to return the InlineShapes collection.
Use the New method to create a new picture as an inline shape. You can use the AddPicture and AddOLEObject methods to add pictures or OLE objects and link them to a source file. Use the AddOLEControl method to add an ActiveX control.
Shape objects are anchored to a range of text but are free-floating and can be positioned anywhere on the page. You can use the ConvertToInlineShape method and the ConvertToShape method to convert shapes from one type to the other. You can convert only pictures, OLE objects, and ActiveX controls to inline shapes.
The Count property for this collection in a document returns the number of items in the main story only. To count items in other stories use the collection with the Range object.
When you open a document created in an earlier version of Microsoft Word, pictures are converted to inline shapes.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Microsoft.Office.Interop.Word Namespace