# SequenceArtifactMessage

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

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

sealed

Describes a sequence message.

## Inheritance

- object
- SequenceArtifactMessage

## 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.Messages](/api/chartforgex-visualartifacts-sequenceartifact/#property-messages)

 Filter members   

    Show inherited   

 

## Constructors

 `public SequenceArtifactMessage(string sourceId, string targetId, string text, SequenceArtifactMessageLineStyle lineStyle = Solid, SequenceArtifactMessageKind kind = Call)` [#](#constructor-ctor-string-string-string-chartforgex-visualartifacts-sequenceartifactmessagelinestyle-chartforgex-visualartifacts-sequenceartifactmessagekind) 

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

Initializes a sequence message.

Parameters

**sourceId string required**

**targetId string required**

**text string required**

**lineStyle ChartForgeX.VisualArtifacts.SequenceArtifactMessageLineStyle = Solid optional**

**kind ChartForgeX.VisualArtifacts.SequenceArtifactMessageKind = Call 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 string SourceId { get; set; }` [#](#property-sourceid) 

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

Gets or sets the source participant id.

 `public string TargetId { get; set; }` [#](#property-targetid) 

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

Gets or sets the target participant id.

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

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

Gets or sets the message text.

 `public SequenceArtifactMessageLineStyle LineStyle { get; set; }` [#](#property-linestyle) 

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

Gets or sets the message line style.

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

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

Gets or sets the semantic message kind.

 `public bool ActivatesTarget { get; set; }` [#](#property-activatestarget) 

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

Gets or sets whether the message activates the target.

 `public bool Deactivates { get; set; }` [#](#property-deactivates) 

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

Gets or sets whether the message deactivates a participant.

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

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

Gets or sets an optional line and arrow color for this message, such as a status color for a failed call; null uses the shared message paint.

 `public Dictionary<string, string> Metadata { get; }` [#](#property-metadata) 

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

Gets message metadata for host adapters.

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