Gets or sets the path of the external reference.
.NET Syntax
Visual Basic (Declaration) | |
---|
Property PathName As System.String |
C# | |
---|
System.string PathName {get; set;} |
JavaScript | |
---|
PathName : System.String |
)
< A href="GettingStarted-draftsightapi.html">HRESULT set_PathName(
BSTR
NewVal
)
C++ | |
---|
property System.String^ PathName { dsString* Val
)
DSRESULTput_PathName(
const dsString& NewVal
} |
Property Value
Path of the external reference
This code snippet shows how to get the external references and their names and paths.
COM native C++
_variant_t pVariantArray = dsDoc->GetExternalReferences();
if( V_VT( &pVariantArray ) != VT_EMPTY )
{
IExternalReferencePtr *ExtRef = NULL;
int countOfExtRef = 0;
TypeConverter::convertVariantArrayToPtrArray<IExternalReferencePtr, IExternalReference>( pVariantArray, ExtRef, countOfExtRef );
bstr_t xRefPath = ExtRef[i]->GetPathName();
}
delete[] ExtRef;