# ViewPositionRelation

typedef

A flag indicating whether this position is `'before'` or `'after'` or `'same'` as given position. If positions are in different roots `'different'` flag is returned.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/position.ts#L401)

#### Value

`'before' | 'after' | 'same' | 'different'`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
