<!--
{
  "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/NSAttributedStringMarkdownSourcePosition",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAttributedStringMarkdownSourcePosition"
  },
  "title" : "NSAttributedStringMarkdownSourcePosition"
}
-->

# NSAttributedStringMarkdownSourcePosition

The position of attributed string text in its original Markdown source string.

```
@interface NSAttributedStringMarkdownSourcePosition : NSObject
```

## Topics

### Creating an Attributed String Markdown Source Position Instance

[`-  initWithStartLine:startColumn:endLine:endColumn:`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/initWithStartLine:startColumn:endLine:endColumn:)

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

### Getting Markdown Source Position Properties

[`startLine`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/startLine)

The line where the text begins in the Markdown source.

[`startColumn`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/startColumn)

The column where the text begins in the Markdown source.

[`endLine`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/endLine)

The line where the text ends in the Markdown source.

[`endColumn`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/endColumn)

The column where the text ends in the Markdown source.

### Getting a Range from a Markdown Source Position Attribute

[`-  rangeInString:`](/documentation/Foundation/NSAttributedStringMarkdownSourcePosition/rangeInString:)

Returns a range indicating the source portion within a Markdown string.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

---

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)