Exportieren (0) Drucken
Alle erweitern

Hyperlinks.Add Method

Returns a Hyperlink object that represents a new hyperlink added to a range, selection, or document.

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

'Usage
Dim Anchor As Object
Dim Address As Object
Dim SubAddress As Object
Dim ScreenTip As Object
Dim TextToDisplay As Object
Dim Target As Object
Dim returnValue As Hyperlink
Dim hyperlinks1 As Hyperlinks
returnValue = hyperlinks1.Add(Anchor, Address, SubAddress, ScreenTip, TextToDisplay, Target)

Hyperlink Add(
	[In] object Anchor, 
	[In, Optional] ref object Address, 
	[In, Optional] ref object SubAddress, 
	[In, Optional] ref object ScreenTip, 
	[In, Optional] ref object TextToDisplay, 
	[In, Optional] ref object Target
);
public Hyperlink Add(
	/*in*/System.Object Anchor, 
	/*in*/System.Object Address, 
	/*in*/System.Object SubAddress, 
	/*in*/System.Object ScreenTip, 
	/*in*/System.Object TextToDisplay, 
	/*in*/System.Object Target
);
function Add(
	 Anchor : Object, 
	 Address : Object, 
	 SubAddress : Object, 
	 ScreenTip : Object, 
	 TextToDisplay : Object, 
	 Target : Object
) : Hyperlink;

Parameters

Anchor

Required Object. The text or graphic that you want turned into a hyperlink.

Address

Optional Object. The address for the specified link. The address can be an e-mail address, an Internet address, or a file name. Note that Microsoft Word doesn't check the accuracy of the address.

SubAddress

Optional Object. The name of a location within the destination file, such as a bookmark, named range, or slide number.

ScreenTip

Optional Object. The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink. The default value is Address.

TextToDisplay

Optional Object. The display text of the specified hyperlink. The value of this argument replaces the text or graphic specified by Anchor.

Target

Optional Object. The name of the frame or window in which you want to load the specified hyperlink.

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:
© 2015 Microsoft