Class FixedWidthFieldInfo
- Namespace
- Wolfgang.Etl.FixedWidth
- Assembly
- Wolfgang.Etl.FixedWidth.dll
Read-only metadata for a single resolved column in a fixed-width record layout — either a mapped field or a skipped column — exposed by FixedWidthSchema (#22).
public sealed class FixedWidthFieldInfo
- Inheritance
-
FixedWidthFieldInfo
- Inherited Members
Remarks
Positions are zero-based and inclusive: a field at columns 0..7 has StartPosition 0 and EndPosition 7. Skipped columns (IsSkip is true) have no Name/PropertyType/Header and expose their SkipMessage instead.
Properties
Alignment
The field alignment. Defaults to Left for a skipped column.
public FieldAlignment Alignment { get; }
Property Value
ColumnIndex
The absolute zero-based column index within the record, including skipped columns.
public int ColumnIndex { get; }
Property Value
EndPosition
The zero-based, inclusive end position of this column (StartPosition + Length - 1).
public int EndPosition { get; }
Property Value
Format
The format string applied to this field, or null if none / a skipped column.
public string? Format { get; }
Property Value
Header
The header label written for this field, or null for a skipped column.
public string? Header { get; }
Property Value
IsSkip
Whether this column is a skipped column rather than a mapped field.
public bool IsSkip { get; }
Property Value
Length
The width of this column in characters.
public int Length { get; }
Property Value
Name
The mapped property name, or null for a skipped column.
public string? Name { get; }
Property Value
NumberStyles
The explicit NumberStyles for numeric parsing, or null to use the type's natural style.
public NumberStyles? NumberStyles { get; }
Property Value
Pad
The pad character. Defaults to space for a skipped column.
public char Pad { get; }
Property Value
PropertyType
The mapped property's type, or null for a skipped column.
public Type? PropertyType { get; }
Property Value
SkipMessage
The optional message describing a skipped column, or null for a mapped field.
public string? SkipMessage { get; }
Property Value
StartPosition
The zero-based, inclusive start position of this column in the line.
public int StartPosition { get; }