Compartilhar via


InlineShapes.New Method (Word)

Inserts an empty, 1-inch-square Word picture object surrounded by a border. This method returns the new graphic as an InlineShape object.

Syntax

expression .New(Range)

expression Required. A variable that represents an InlineShapes collection.

Parameters

Name

Required/Optional

Data Type

Description

Range

Required

Range object

The location of the new graphic.

Return Value

InlineShape

Example

This example inserts a new, empty picture in the active document and applies a shadow border around the picture.

Dim ishapeNew As InlineShape 
 
Set ishapeNew = _ 
 ActiveDocument.InlineShapes.New(Range:=Selection.Range) 
 
ishapeNew.Borders.Shadow = True 
ActiveDocument.ActiveWindow.View.ShowFieldCodes = False

See Also

Concepts

InlineShapes Collection Object

InlineShapes Object Members