Click or drag to resize

FixedColumnWidthWithTabSeparationStrategy Class

This strategy assumes that the tokens fill the printout (!) at fixed positions and have a fixed length. For the printout position, we have to assume a certain tabulator with. Each tabulator char in the string advances the printout position by a certain amount depending on the current printout position. The starting printout position of the first token is always zero. The starting printout positions of each subsequent token (beginning with the second token) has to be provided in the constructor.
Inheritance Hierarchy
SystemObject
  Altaxo.Serialization.AsciiFixedColumnWidthWithTabSeparationStrategy

Namespace: Altaxo.Serialization.Ascii
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class FixedColumnWidthWithTabSeparationStrategy : IAsciiSeparationStrategy, 
	IImmutable, IEquatable<FixedColumnWidthWithTabSeparationStrategy>

The FixedColumnWidthWithTabSeparationStrategy type exposes the following members.

Constructors
 NameDescription
Public methodFixedColumnWidthWithTabSeparationStrategy Initializes a new instance of the FixedColumnWidthWithTabSeparationStrategy class with a TabSize of 8 and an empty list of start positions.
Public methodFixedColumnWidthWithTabSeparationStrategy(IReadOnlyListInt32, Int32) Constructor for this strategy. You must provide the start positions of the tokens. The first token implicitely has position 0. Furthermore you must provide a tab size that is used to calculate the tabbed positions.
Top
Properties
 NameDescription
Public propertyStartPositions 
Public propertyTabSize 
Top
Methods
 NameDescription
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetTokens 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides ObjectToString)
Top
Remarks
For a tab width of 1, this strategy is identical to the FixedColumnWidthWithoutTabSeparationStrategy.
See Also