<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributedString/MarkdownSourcePosition/init(startLine:startColumn:endLine:endColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation16AttributedStringV22MarkdownSourcePositionV9startLine0G6Column03endH00jI0AESi_S3itcfc"
  },
  "title" : "init(startLine:startColumn:endLine:endColumn:)"
}
-->

# init(startLine:startColumn:endLine:endColumn:)

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

```
init(startLine: Int, startColumn: Int, endLine: Int, endColumn: Int)
```

## Parameters

`startLine`

The line where the text begins in the Markdown source.

`startColumn`

The column where the text begins in the Markdown source.

`endLine`

The line where the text ends in the Markdown source.

`endColumn`

The column where the text ends in the Markdown source.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)