[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IHyperlinks.Add

Add Method

向指定范围添加超链接(IHyperlink 对象)。

Declaration
IHyperlink Add(IRange anchor, string address, string subAddress = "", string screenTip = "", string textToDisplay = "")
Parameters
Type Name Description
IRange anchor

必需的IRange 超链接的锚点。

string address

必需的 String。超链接的地址。

string subAddress

可选 Object。超链接的子地址。

string screenTip

可选 Object。当鼠标指针悬停在超链接上时显示的屏幕提示。

string textToDisplay

可选 Object。超链接要显示的文本。

Returns
Type Description
IHyperlink

向指定形状添加超链接(IHyperlink 对象)。

Declaration
IHyperlink Add(IShape shape, string address, string subAddress = "", string screenTip = "", string textToDisplay = "")
Parameters
Type Name Description
IShape shape

必需的IShape 超链接的形状。

string address

必需的 String。超链接的地址。

string subAddress

可选 Object。超链接的子地址。

string screenTip

可选 Object。当鼠标指针悬停在超链接上时显示的屏幕提示。

string textToDisplay

可选 Object。超链接要显示的文本。

Returns
Type Description
IHyperlink