Shapes.AddCanvas(Single, Single, Single, Single, Object) Method

Definition

Adds a drawing canvas to a document. Returns a Shape object that represents the drawing canvas and adds it to the Shapes collection.

public Microsoft.Office.Interop.Word.Shape AddCanvas (float Left, float Top, float Width, float Height, ref object Anchor);
abstract member AddCanvas : single * single * single * single * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddCanvas (Left As Single, Top As Single, Width As Single, Height As Single, Optional ByRef Anchor As Object) As Shape

Parameters

Left
Single

Required Single. The position, in points, of the left edge of the drawing canvas, relative to the anchor.

Top
Single

Required Single. The position, in points, of the top edge of the drawing canvas, relative to the anchor.

Width
Single

Required Single. The width, in points, of the drawing canvas.

Height
Single

Required Single. The height, in points, of the drawing canvas.

Anchor
Object

Optional Object. A Range object that represents the text to which the canvas is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the canvas is positioned relative to the top and left edges of the page.

Returns

Applies to