# PacketLayoutField

Describes one labeled contiguous field inside a packet layout.

 Class  

`ChartForgeX.VisualBlocks`

**Namespace**

`ChartForgeX.VisualBlocks`

**Assembly**

`ChartForgeX`

**Source**

[PacketLayoutBlock.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L92)

**Modifiers**

sealed

Describes one labeled contiguous field inside a packet layout.

## Inheritance

- object
- PacketLayoutField

## 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 [PacketLayoutBlock.Fields](/api/chartforgex-visualblocks-packetlayoutblock/#property-fields)

 Filter members   

    Show inherited   

 

## Constructors

 `public PacketLayoutField(int startBit, int endBit, string label)` [#](#constructor-ctor-int32-int32-string) 

[PacketLayoutBlock.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L92)

Initializes a packet field.

Parameters

**startBit int required**

**endBit int required**

**label string required**

## 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 int StartBit { get; }` [#](#property-startbit) 

[PacketLayoutBlock.cs:101](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L101)

Gets the first bit covered by this field.

 `public int EndBit { get; }` [#](#property-endbit) 

[PacketLayoutBlock.cs:104](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L104)

Gets the last bit covered by this field.

 `public int BitLength { get; }` [#](#property-bitlength) 

[PacketLayoutBlock.cs:107](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L107)

Gets the number of covered bits.

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

[PacketLayoutBlock.cs:110](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/PacketLayoutBlock.cs#L110)

Gets or sets the display label.

<!-- PowerForge markdown artifact sha256:54FE9BEF5324C7414A95B46DCDEB6E997E5AE21EE4596B493BFD4DA44B52ED8D -->
