Struct Indentation
Represents an indentation block, as a repetition of a character multiple times.
public record struct Indentation : IEquatable<Indentation>
- Implements
- Inherited Members
- Extension Methods
Remarks
This will be used in more utilities in the future, including string indentation, discovering string indentation patterns, etc.
Constructors
Indentation(char, int)
Represents an indentation block, as a repetition of a character multiple times.
public Indentation(char Character, int Width)
Parameters
CharactercharThe (usually whitespace) character to be used for the indentation block. It may be any character, whitespace or not.
WidthintThe number of times to repeat the character.
Remarks
This will be used in more utilities in the future, including string indentation, discovering string indentation patterns, etc.
Fields
EightSpaces
public static readonly Indentation EightSpaces
Field Value
FourSpaces
public static readonly Indentation FourSpaces
Field Value
SingleTab
public static readonly Indentation SingleTab
Field Value
TwoSpaces
public static readonly Indentation TwoSpaces
Field Value
Properties
Character
The (usually whitespace) character to be used for the indentation block. It may be any character, whitespace or not.
public char Character { readonly get; set; }
Property Value
Width
The number of times to repeat the character.
public int Width { readonly get; set; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.