InlineShape Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an object in the text layer of a document.
public interface class InlineShape
[System.Runtime.InteropServices.Guid("000209A8-0000-0000-C000-000000000046")]
public interface InlineShape
type InlineShape = interface
Public Interface InlineShape
- Attributes
Remarks
An inline shape can only be a picture, an OLE object, or an ActiveX control. InlineShape objects are treated like characters and are positioned as characters within a line of text. The InlineShape object is a member of the InlineShapes collection. The InlineShapes collection contains all the shapes in a document, range, or selection.
Use InlineShapes(index
), where index
is the index number, to return a single InlineShape object. Inline shapes don't have names.
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() methods to convert shapes from one type to the other. You can convert only pictures, OLE objects, and ActiveX controls to inline shapes. Use the Type property to return the type of inline shape: picture, linked picture, embedded OLE object, linked OLE object, or ActiveX control.
When you open a document created in an earlier version of Microsoft Word, pictures are converted to inline shapes.
Properties
AlternativeText |
Returns or sets the alternative text associated with a shape in a Web page. |
AnchorID | |
Application |
Returns a Application object that represents the Microsoft Word application. |
Borders |
Returns a Borders collection that represents all the borders for the specified object. |
Chart |
Returns a chart within the collection of inline shapes in a document. Read-only. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
EditID | |
Field |
Returns a Field object that represents the field associated with the specified shape. |
Fill |
Returns a FillFormat object that contains fill formatting properties for the specified shape. |
Glow |
Returns the formatting properties for a glow effect. Read-only. |
GroupItems |
Returns the shapes that are grouped together for an inline shape. Read-only. |
HasChart |
True if the specified shape is a chart. Read-only. |
HasSmartArt |
Gets True if there is a SmartArt diagram present on the shape. |
Height |
Returns or sets the height of the specified inline shape. |
HorizontalLineFormat |
Returns a HorizontalLineFormat object that contains the horizontal line formatting for the specified InlineShape object. |
Hyperlink |
Returns a Hyperlink object that represents the hyperlink associated with the specified InlineShape object. |
IsPictureBullet |
Determines if a InlineShape object is a picture bullet. |
Line |
Returns a LineFormat object that contains line formatting properties for the specified shape. |
LinkFormat |
Returns a LinkFormat object that represents the link options of the specified InlineShape that's linked to a file. |
LockAspectRatio |
Determines whether the specified shape retains its original proportions when you resize it. |
OLEFormat |
Returns a OLEFormat object that represents the OLE characteristics (other than linking) for the specified InlineShape. |
OWSAnchor |
Reserved for internal use. |
Parent |
Returns an object that represents the parent object of the specified object. |
PictureFormat |
Returns a PictureFormat object that contains picture formatting properties for the specified object. |
Range |
Returns a Range object that represents the portion of a document that's contained in the specified object. |
Reflection |
Returns the reflection formatting for a shape. Read-only. |
ScaleHeight |
Scales the height of the specified inline shape relative to its original size. |
ScaleWidth |
Scales the width of the specified inline shape relative to its original size. |
Script |
Returns a Script object, which represents a block of script or code on the specified Web page. |
Shadow |
Returns the shadow formatting for the specified shape. Read-only. |
SmartArt |
Gets a SmartArt object that provides a way to work with the SmartArt associated with the specified inline shape. |
SoftEdge |
Returns the soft edge formatting for a shape. Read-only. |
TextEffect |
Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. |
Title |
Gets or sets a value that contains a title for the specified inline shape. |
Type |
Returns the type of inline shape. |
Width |
Returns or sets the width of the specified object, in points. |
Methods
Activate() |
Activates the specified object. |
ConvertToShape() |
Converts an inline shape to a free-floating shape and returns a Shape object that represents the new shape. |
Delete() |
Deletes the specified object. |
Reset() |
Removes changes that were made to an inline shape. |
Select() |
Selects the specified object. |