Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

Shapes.AddLine Method

Adds a line to a document. Returns a Shape object that represents the line and adds it to the AddCallout collection.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim BeginX As Single
Dim BeginY As Single
Dim EndX As Single
Dim EndY As Single
Dim Anchor As Object
Dim returnValue As Shape
Dim shapes1 As Shapes
returnValue = shapes1.AddLine(BeginX, BeginY, EndX, EndY, Anchor)

Shape AddLine(
	[In] float BeginX, 
	[In] float BeginY, 
	[In] float EndX, 
	[In] float EndY, 
	[In, Optional] ref object Anchor
);
public Shape AddLine(
	/*in*/float BeginX, 
	/*in*/float BeginY, 
	/*in*/float EndX, 
	/*in*/float EndY, 
	/*in*/System.Object Anchor
);
function AddLine(
	 BeginX : float, 
	 BeginY : float, 
	 EndX : float, 
	 EndY : float, 
	 Anchor : Object
) : Shape;

Parameters

BeginX

Required Single. The horizontal position, measured in points, of the line's starting point, relative to the anchor.

BeginY

Required Single. The vertical position, measured in points, of the line's starting point, relative to the anchor.

EndX

Required Single. The horizontal position, measured in points, of the line's end point, relative to the anchor.

EndY

Required Single. The vertical position, measured in points, of the line's end point, relative to the anchor.

Anchor

Optional Object. A Range object that represents the text to which the label 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 label is positioned relative to the top and left edges of the page.

To create an arrow, use the Line property to format a line.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: