# ChartLaneGroup

Describes one level of a nested lane hierarchy for state timelines and Gantt lanes, such as a site, a service under that site, or a host role under that…

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartLaneGroup.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L18)

**Modifiers**

sealed

Describes one level of a nested lane hierarchy for state timelines and Gantt lanes, such as a site, a service under that site, or a host role under that service. A lane joins the group whose [ChartLaneGroup.Id](/api/chartforgex-core-chartlanegroup/) it passes as its group and is listed under every ancestor of that group. Register groups through [Chart.AddLaneGroup](/api/chartforgex-core-chart/).

## Inheritance

- object
- ChartLaneGroup

## Usage

 Explore 5 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 [ChartStateTimelineOptions.Groups](/api/chartforgex-core-chartstatetimelineoptions/#property-groups)

### Accepted by parameters 4

- Extension method [ChartStateTimelineOptions.Group](/api/chartforgex-core-chartstatetimelineoptions/#extension-group-chartforgex-core-chartstatetimelineoptions-chartforgex-core-chartlanegroup) parameter `item`
- Extension method [ChartStateTimelineOptions.Groups](/api/chartforgex-core-chartstatetimelineoptions/#extension-groups-chartforgex-core-chartstatetimelineoptions-collections-generic-ienumerable-chartforgex-core-chartlanegroup) parameter `items`
- Method [ChartStateTimelineOptionsFluent.Group](/api/chartforgex-core-chartstatetimelineoptionsfluent/#method-group-chartforgex-core-chartstatetimelineoptions-chartforgex-core-chartlanegroup) parameter `item`
- Method [ChartStateTimelineOptionsFluent.Groups](/api/chartforgex-core-chartstatetimelineoptionsfluent/#method-groups-chartforgex-core-chartstatetimelineoptions-collections-generic-ienumerable-chartforgex-core-chartlanegroup) parameter `items`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartLaneGroup(string id, string label, string? parentId = null, bool collapsed = false)` [#](#constructor-ctor-string-string-string-boolean) 

[ChartLaneGroup.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L18)

Initializes a lane group.

Parameters

**id string required**

The stable group identity, for example site/warsaw. Lanes refer to it through their group.

**label string required**

The text drawn in the group header row.

**parentId string? = null optional**

The identity of the enclosing group, or null for a top-level group.

**collapsed bool = false optional**

Whether the interactive HTML adapter starts with this group collapsed. Static SVG, PNG and print output always list every lane.

## 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 Id { get; }` [#](#property-id) 

[ChartLaneGroup.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L30)

Gets the stable group identity.

 `public string Label { get; }` [#](#property-label) 

[ChartLaneGroup.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L33)

Gets the header text.

 `public string? ParentId { get; }` [#](#property-parentid) 

[ChartLaneGroup.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L36)

Gets the identity of the enclosing group, or null for a top-level group.

 `public bool Collapsed { get; }` [#](#property-collapsed) 

[ChartLaneGroup.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLaneGroup.cs#L39)

Gets whether the interactive adapter starts with this group collapsed.

<!-- PowerForge markdown artifact sha256:2E961FFC2D32AE4A094EDB48363C551519B74984E06F2BC203CF3D4D77337C5E -->
