Locations.AddTypeLocation
- Updated2025-07-21
- 1 minute(s) read
Locations.AddTypeLocation
Syntax
Locations.AddTypeLocation( file, rootTypeDef, lookupString, elem = PropertyObjectElement_None, selectionStart = 0, selectionLength = -1)
Return Value
The Location added to the collection.
Purpose
Adds a new type location to the collection.
Parameters
file As PropertyObjectFile
[In] Specifies the file in which the type you pass to the rootTypeDef parameter is saved.
rootTypeDef As PropertyObject
[In] Specifies a type definition. This method sets the Location.TypeName and Location.TypeCategory properties of the new Location from the root type definition this parameter specifies. This method also sets the Location.PropertyPath property of the new Location using the lookupString parameter.
lookupString As String
[In] Specifies the path to a subproperty of the rootTypeDef parameter. This method sets the Location.PropertyPath property of the new Location using the lookup string you pass. This method also sets as many properties of the new Location as this method can obtain from the subproperty this parameter specifies.
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 .
See Also
Locations.AddExecutionLocation
PropertyObject.IsRootTypeDefinition