Locations.AddTypeLocationByObject
- Updated2025-07-21
- 1 minute(s) read
Locations.AddTypeLocationByObject
Syntax
Locations.AddTypeLocationByObject( file, obj, 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 obj parameter is saved.
obj 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 that contains the type definition you pass. This method sets the Location.PropertyPath property of the new Location to the lookup string to obj from the root type definition of obj.
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