Table of Contents

Struct Indentation

Namespace
Garyon.Objects.Strings
Assembly
Garyon.dll

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

Character char

The (usually whitespace) character to be used for the indentation block. It may be any character, whitespace or not.

Width int

The 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

Indentation

FourSpaces

public static readonly Indentation FourSpaces

Field Value

Indentation

SingleTab

public static readonly Indentation SingleTab

Field Value

Indentation

TwoSpaces

public static readonly Indentation TwoSpaces

Field Value

Indentation

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

char

Width

The number of times to repeat the character.

public int Width { readonly get; set; }

Property Value

int

Methods

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.