---
title: "CTRunDelegateCreate(_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctrundelegatecreate(_:_:)"
---

# CTRunDelegateCreate(_:_:)

Creates an immutable instance of a run delegate.

## Declaration

```swift
func CTRunDelegateCreate(_ callbacks: UnsafePointer<CTRunDelegateCallbacks>, _ refCon: UnsafeMutableRawPointer?) -> CTRunDelegate?
```

## Parameters

- `callbacks`: A structure holding pointers to the callbacks for this run delegate.
- `refCon`: A constant value associated with the run delegate to identify it.

## Return Value

Return Value If  successful, a reference to an immutable CTRunDelegate object. Otherwise, returns NULL.

## Discussion

Discussion The run-delegate object can be used for reserving space in a line or for eliding the glyphs for a range of text altogether.
