Locations.AddFileLocation
- Updated2025-07-21
- 1 minute(s) read
Locations.AddFileLocation
Syntax
Locations.AddFileLocation( file, lookupString, elem = PropertyObjectElement_None, selectionStart = 0, selectionLength = -1)
Return Value
The Location added to the collection.
Purpose
Adds a new file location to the collection.
Parameters
file As PropertyObjectFile
[In] Specifies ss the file to initialize the Location.FileDisplayName , Location.FileId , and Location.FilePath properties.
lookupString As String
[In] Specifies a subproperty of the file parameter. This method sets the Location.PropertyPath property of the new Location to the lookup string to lookupString from file. This method also sets as many properties of the new Location as this method can obtain from the object you pass. This method specifies the lookupString parameter relative to the root of the PropertyObjectFile object. For example, if the location is underneath the PropertyObjectFile.Data element, the lookup string must use the Data. prefix.
elem As PropertyObjectElements
[In] Specifies the value of the Location.Element property of the new location.
This parameter has a default value of PropertyObjectElement_None .
selectionStart As Long
[In] Specifies the value of the Location.SelStart property of the new location.
This parameter has a default value of 0 .
selectionLength As Long
[In] Specifies the value of the Location.SelLength property of the new location.
This parameter has a default value of -1 .