# StorySourceSpan

Associates a UTF-16 source range with a renderer-neutral syntax category.

 Struct  

`ChartForgeX.Stories`

**Namespace**

`ChartForgeX.Stories`

**Assembly**

`ChartForgeX.Stories`

**Source**

[StorySourceText.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L56)

**Base**

`ValueType`

**Modifiers**

sealed

Associates a UTF-16 source range with a renderer-neutral syntax category.

## Inheritance

- ValueType
- StorySourceSpan

## Usage

 Explore 2 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [StorySourceText.Spans](/api/chartforgex-stories-storysourcetext/#property-spans)

### Accepted by parameters 1

- Method [StorySourceText.AddSpan](/api/chartforgex-stories-storysourcetext/#method-addspan-chartforgex-stories-storysourcespan) parameter `span`

 Filter members   

    Show inherited   

 

## Constructors

 `public StorySourceSpan(int start, int length, StorySyntaxKind kind)` [#](#constructor-ctor-int32-int32-chartforgex-stories-storysyntaxkind) 

[StorySourceText.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L56)

Initializes a syntax span.

Parameters

**start int required**

**length int required**

**kind ChartForgeX.Stories.StorySyntaxKind required**

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public int Start { get; }` [#](#property-start) 

[StorySourceText.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L65)

Gets the zero-based UTF-16 start offset.

 `public int Length { get; }` [#](#property-length) 

[StorySourceText.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L68)

Gets the UTF-16 span length.

 `public StorySyntaxKind Kind { get; }` [#](#property-kind) 

[StorySourceText.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L71)

Gets the semantic syntax category.

 `public int End { get; }` [#](#property-end) 

[StorySourceText.cs:74](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceText.cs#L74)

Gets the exclusive UTF-16 end offset.

<!-- PowerForge markdown artifact sha256:D8AA9F1E69BCFEBC26EE6D254A5F92863D0A86226A8AC2842D5AC75DE417D475 -->
