DocumentProperty
SetLinkSource Method
|
Sets the link source from the provided IPropertyData object.
Validates that the variant is not null and has a type of VT_LPSTR or VT_LPWSTR.
Converts the variant value to a string and assigns it to the LinkSource property.
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void SetLinkSource(
IPropertyData variant
)
Public Sub SetLinkSource (
variant As IPropertyData
)
public:
void SetLinkSource(
IPropertyData^ variant
)
member SetLinkSource :
variant : IPropertyData -> unit
Parameters
-
variant
-
Type:
Spire.Xls
IPropertyData
The IPropertyData object containing the link source.
Exceptions
Exception
|
Condition
|
ArgumentNullException
|
Thrown when the variant parameter is null.
|
ArgumentOutOfRangeException
|
Thrown when the variant type is not VT_LPSTR or VT_LPWSTR.
|
See Also