PreFill is a project to align horizontally listed output values to right side in order to increase their legibility.
$ dotnet add package PreFillPreFill is a project to align horizontally listed output values to right side in order to increase their legibility.
PreFill has methods to fill desired value preceeding of values to align them. Empty character, letter or number can be used to make different lenghted values align right. Supported data types: (sbyte, byte, int, uint, long, ulong, string)
PreFill is optimized for cpu-intense applications.
PreFilledCustom(long number, byte maxNumberOfDigit, string text = "")
PreFilledCustom(long? number, byte maxNumberOfDigit, string text = "")
PreFilledCustom(long number, byte maxNumberOfDigit, char text = '')
PreFilledCustom(long? number, byte maxNumberOfDigit, char text = '')
PrefilledCustom(ulong number, byte maxNumberOfDigit, string text = "")
PrefilledCustom(ulong? number, byte maxNumberOfDigit, string text = "")
PreFilledCustom(ulong number, byte maxNumberOfDigit, char text = '')
PreFilledCustom(ulong? number, byte maxNumberOfDigit, char text = '')
Returns prefilled value. If value is null returns only prefilling value. (string)
ulong?/long? number: Unsigned long, long number value or null.
byte maxNumberOfDigit: Maximum number of digit of numerical value.
string/char text: Desired value to add at left side.
PreFilledCustom(string context, int maxLength, string text = "")
PreFilledCustom(string context, int maxLength, char text = '')
Returns prefilled value. If context is null, it returns only prefilling value. (string)
string context: String text value.
int maxLength: Maximum length of text value.
string/char text: Desired value to add at left side.
PreFilledCustom(List<long> numberList, string text = "")
PreFilledCustom(List<long?> numberList, string text = "")
PrefilledCustom(List<long> numberList, char text = '')
PrefilledCustom(List<long?> numberList, char text = '')
PrefilledCustom(List<ulong> numberList, string text = "")
PrefilledCustom(List<ulong?> numberList, string text = "")
PrefilledCustom(List<long> numberList, char text = '')
PrefilledCustom(List<long?> numberList, char text = '')
Returns prefilled values. If element of given list is null, it returns only prefilling value for null element. (List)
List<long?>/List<ulong?> numberList: List of signed long or unsigned long numerical values.
string/char text: Desired value to add at left side.
PreFilledCustom(List<string> contextList, string text = "")
PreFilledCustom(List<string) contextList, char text = '')
Returns prefilled values (List)
List contextList: List of string values.
string/char text: Desired value to add at left side.
PreFillCustom(long number, int maxNumberOfDigit, string text = "")
PreFillCustom(long? number, int maxNumberOfDigit, string text = "")
PreFillCustom(long number, int maxNumberOfDigit, char text = '')
PreFillCustom(long? number, int maxNumberOfDigit, char text = '')
PreFillCustom(ulong number, int maxNumberOfDigit, string text = "")
PreFillCustom(ulong? number, int maxNumberOfDigit, string text = "")
PreFillCustom(ulong number, int maxNumberOfDigit, char text = '')
PreFillCustom(ulong? number, int maxNumberOfDigit, char text = '')
Returns prefill value only. (string)
ulong?/long? number: Signed or unsigned long numberical value.
int maxNumberOfDigit: Maximum number of digit of numerical value.
string/char text: Desired value to add at left side.
PreFill[1-8](long number, char text = '')
PreFill[1-8](ulong number, char text = '')
Returns prefill value only. (string)
[1-8]: Maximum digit number of prefilled values.
ulong/long number: Signed or unsigned long numerical value.
char text: Desired value to add at left side.
PreFillCustom(string text, int maxLength, string stringValue = "")
PreFillCustom(string text, int maxLength, char charValue = '')
Returns prefill value only. (string)
string text: String text value.
int maxLength: Maximum length of string value.
string stringValue/char charValue: Desired value to add at left side.
PrefilledCustom methods' name changed with PreFilledCustom.
1.3.0
1.2.0
1.1.0
1.0.0 Initial Release
No licence is required.
Twitter: @enesokullu
Twitter: @enesokullu