# VisualCanvasTextRun

Single-color text run used by hero title layers.

 Class  

`ChartForgeX.Composition`

**Namespace**

`ChartForgeX.Composition`

**Assembly**

`ChartForgeX.Visuals`

**Source**

[VisualCanvasModels.cs:543](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Visuals/VisualCanvas/VisualCanvasModels.cs#L543)

**Modifiers**

sealed

Single-color text run used by hero title layers.

## Inheritance

- object
- VisualCanvasTextRun

## Usage

 Explore 3 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 [VisualCanvasHeroTitleLayer.Runs](/api/chartforgex-composition-visualcanvasherotitlelayer/#property-runs)

### Accepted by parameters 2

- Method [VisualCanvas.AddHeroTitle](/api/chartforgex-composition-visualcanvas/#method-addherotitle-double-double-double-double-collections-generic-ienumerable-chartforgex-composition-visualcanvastextrun-chartforgex-typography-textalignment) parameter `runs`
- Constructor [VisualCanvasHeroTitleLayer.VisualCanvasHeroTitleLayer](/api/chartforgex-composition-visualcanvasherotitlelayer/#constructor-ctor-double-double-double-double-collections-generic-ienumerable-chartforgex-composition-visualcanvastextrun) parameter `runs`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualCanvasTextRun(string text, ChartColor color)` [#](#constructor-ctor-string-chartforgex-primitives-chartcolor) 

[VisualCanvasModels.cs:543](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Visuals/VisualCanvas/VisualCanvasModels.cs#L543)

Initializes a hero title text run.

Parameters

**text string required**

The text to render.

**color ChartForgeX.Primitives.ChartColor required**

The text color.

## 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 Text { get; set; }` [#](#property-text) 

[VisualCanvasModels.cs:549](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Visuals/VisualCanvas/VisualCanvasModels.cs#L549)

Gets or sets the run text.

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

[VisualCanvasModels.cs:552](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Visuals/VisualCanvas/VisualCanvasModels.cs#L552)

Gets or sets the run color.

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