# SequenceArtifactBlock

Describes a sequence block span. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

[SequenceArtifact.NativePresentation.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifact.NativePresentation.cs#L36)

**Modifiers**

sealed

Describes a sequence block span.

## Inheritance

- object
- SequenceArtifactBlock

## Usage

 Explore 1 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 [SequenceArtifact.Blocks](/api/chartforgex-visualartifacts-sequenceartifact/#property-blocks)

 Filter members   

    Show inherited   

 

## Constructors

 `public SequenceArtifactBlock(SequenceArtifactBlockKind kind, string text, int startStepIndex, int endStepIndex, bool isEmpty = false, int depth = 0)` [#](#constructor-ctor-chartforgex-visualartifacts-sequenceartifactblockkind-string-int32-int32-boolean-int32) 

[SequenceArtifact.NativePresentation.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifact.NativePresentation.cs#L36)

Initializes a sequence block span.

Parameters

**kind ChartForgeX.VisualArtifacts.SequenceArtifactBlockKind required**

**text string required**

**startStepIndex int required**

**endStepIndex int required**

**isEmpty bool = false optional**

**depth int = 0 optional**

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from object

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from object

Returns

 `string?` 

## Properties

 `public List<string> ParticipantIds { get; }` [#](#property-participantids) 

[SequenceArtifact.NativePresentation.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifact.NativePresentation.cs#L36)

Gets optional reference participant targets in declaration order. Only Reference uses targets; an empty list spans the diagram.

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

[SequenceArtifactModels.cs:402](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L402)

Gets or sets the block kind.

 `public ChartColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor) 

[SequenceArtifactModels.cs:405](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L405)

Gets or sets an explicit fill behind this fragment; a Rect fill has no synthetic caption or header.

 `public string Text { get; set; }` [#](#property-text) 

[SequenceArtifactModels.cs:408](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L408)

Gets or sets the block text.

 `public int StartStepIndex { get; set; }` [#](#property-startstepindex) 

[SequenceArtifactModels.cs:411](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L411)

Gets or sets the first covered step index.

 `public int EndStepIndex { get; set; }` [#](#property-endstepindex) 

[SequenceArtifactModels.cs:414](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L414)

Gets or sets the last covered step index.

 `public bool IsEmpty { get; set; }` [#](#property-isempty) 

[SequenceArtifactModels.cs:417](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L417)

Gets or sets whether the block contains no message steps.

 `public int Depth { get; set; }` [#](#property-depth) 

[SequenceArtifactModels.cs:420](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactModels.cs#L420)

Gets or sets the source nesting depth.

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