Skip to content

Fixed Width Column Inputs - format and text alignment #24

Discussion options

You must be logged in to vote

Typically, the format for a string will take the form of {i,x} where i is the index and x specifies the alignment and formatting. For example, {0,12} means a right-aligned 12-character string, whereas {0,-12} means a left-aligned 12-character string.

The format input parameter utilizes the string.Format method. From the docs:

index The zero-based index of the argument whose string representation is to be included at this position in the string. If this argument is null, an empty string will be included at this position in the string.

alignment Optional. A signed integer that indicates the total length of the field into which the argument is inserted and whether it is right-aligned (a posi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andyvidan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants