---
title: "initWithStartLine:startColumn:endLine:endColumn:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsattributedstringmarkdownsourceposition/initwithstartline:startcolumn:endline:endcolumn:"
---

# initWithStartLine:startColumn:endLine:endColumn:

Creates a Markdown source position instance from its start and end line and column.

## Declaration

```occ
- (instancetype) initWithStartLine:(NSInteger) startLine startColumn:(NSInteger) startColumn endLine:(NSInteger) endLine endColumn:(NSInteger) endColumn;
```

## Parameters

- `startLine`: The line number where text begins in the Markdown source. Specify a 1-based number. For example, the number for the first row is 1, for the second row is 2, and so on.
- `startColumn`: The column number where text begins in the Markdown source. Specify a 1-based number. For example, the number for the first column is 1, for the second column is 2, and so on. Columns represent UTF-8 indices; for multi-byte characters, the column indicates the first byte.
- `endLine`: The line number where the Markdown source ends. Specify a 1-based number.
- `endColumn`: The column number where the Markdown source ends. Specify a 1-based number.
