Skip to content
ChartForgeX

API Reference

Class

PacketLayoutBlock

Namespace ChartForgeX.VisualBlocks
Assembly ChartForgeX
Base VisualBlock<PacketLayoutBlock>
Modifiers sealed

A deterministic packet-layout visual block made of contiguous labeled bit fields.

Inheritance

  • VisualBlock<PacketLayoutBlock>
  • PacketLayoutBlock

Usage

Explore 22 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.

Constructors

public PacketLayoutBlock() #

Methods

public PacketLayoutBlock AddField(Int32 startBit, Int32 endBit, String label) #
Returns: PacketLayoutBlock

Adds one contiguous field.

Parameters

startBit System.Int32 requiredposition: 0
endBit System.Int32 requiredposition: 1
label System.String requiredposition: 2
public static PacketLayoutBlock Create() #
Returns: PacketLayoutBlock

Creates a packet layout block.

public PacketLayoutBlock WithBitNumbers(Boolean visible = true) #
Returns: PacketLayoutBlock

Sets whether bit start and end numbers are rendered above fields.

Parameters

visible System.Boolean = true optionalposition: 0
public PacketLayoutBlock WithBitOrder(PacketBitOrder order) #
Returns: PacketLayoutBlock

Sets the visual bit direction within each row.

Parameters

order ChartForgeX.VisualBlocks.PacketBitOrder requiredposition: 0
public PacketLayoutBlock WithBitsPerRow(Int32 bitsPerRow) #
Returns: PacketLayoutBlock

Sets how many bits are rendered per visual row.

Parameters

bitsPerRow System.Int32 requiredposition: 0
public PacketLayoutBlock WithBitWidth(Double? width) #
Returns: PacketLayoutBlock

Sets the preferred bit width; the renderer fits it to the available row width.

Parameters

width System.Double? requiredposition: 0
public PacketLayoutBlock WithFieldGap(Double? gap) #
Returns: PacketLayoutBlock

Sets the preferred gap between fields; each field retains positive width.

Parameters

gap System.Double? requiredposition: 0
public PacketLayoutBlock WithRowGap(Double? gap) #
Returns: PacketLayoutBlock

Sets the preferred gap between rows; the renderer fits it to the available height.

Parameters

gap System.Double? requiredposition: 0
public PacketLayoutBlock WithRowHeight(Double? height) #
Returns: PacketLayoutBlock

Sets the preferred field height; the renderer fits it to the available row height.

Parameters

height System.Double? requiredposition: 0

Properties

public IReadOnlyList<PacketLayoutField> Fields { get; } #

Gets packet fields in bit order.

public Int32 BitsPerRow { get; set; } #

Gets or sets how many bits are rendered per visual row.

public Boolean ShowBitNumbers { get; set; } #

Gets or sets whether bit start and end numbers are rendered above fields when they fit the available space.

public Double? BitWidth { get; set; } #

Gets or sets the preferred width of one bit in logical pixels; null fills the available row.

public Double? RowHeight { get; set; } #

Gets or sets the preferred field height in logical pixels; null uses automatic row sizing.

public Double? FieldGap { get; set; } #

Gets or sets the gap between fields in logical pixels; null uses the native one-pixel gap.

public Double? RowGap { get; set; } #

Gets or sets the gap between rows in logical pixels; null uses automatic spacing.

public PacketBitOrder BitOrder { get; set; } #

Gets or sets the visual bit direction within each row without changing field ranges.

public override String AccessibleName { get; } #

Gets a concise accessibility label.