---
title: rangeContainerObject
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptexecutioncontext/rangecontainerobject
---

# rangeContainerObject

Sets the top-level container object for a range-specifier evaluation to a give object.

## Declaration

```swift
var rangeContainerObject: Any? { get set }
```

## Parameters

- `container`: The top-level container object for a range-specifier evaluation.

## Discussion

Discussion Instances of NSRangeSpecifier contain object specifiers representing the first or last element in a range of elements, and these specifiers are evaluated in the context of container.

## See Also

### Getting and setting the container object

- [topLevelObject](foundation/nsscriptexecutioncontext/toplevelobject.md)
- [objectBeingTested](foundation/nsscriptexecutioncontext/objectbeingtested.md)
