TerminalWidthProfile
ConsoleMonster.Text
Describes terminal-specific Unicode cell width choices.
Inheritance
- object
- TerminalWidthProfile
Usage
Explore 21 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 9
- Property TerminalProfile.WidthProfile
- Property DisplayWidth.Profile
- Method TerminalWidthProfile.WithAmbiguousWidth
- Method TerminalWidthProfile.WithEmojiWidth
- Method TerminalWidthProfile.WithFlagWidth
- Method TerminalWidthProfile.WithSource
- Method TerminalWidthProfile.WithTextPresentationWidth
- Method TerminalWidthProfile.WithZwjSequences
- Property TerminalWidthProfile.Standard
Accepted by parameters 12
- Constructor TerminalProfile.TerminalProfile
- Method TerminalProfile.WithWidthProfile
- Method SymbolFallback.Apply
- Method SymbolFallback.GetGlyph
- Method SymbolFallback.GetPrefix
- Method DisplayWidth.Cells
- Method DisplayWidth.GetWidth
- Method DisplayWidth.Measure
- Method TerminalWidthProfile.Equals
- Method TextWrapper.Truncate
- Method TextWrapper.TruncateMiddle
- Method TextWrapper.Wrap
Constructors
public TerminalWidthProfile(int emojiWidth = 2, int ambiguousWidth = 1, ZwjRendering zwjSequences = Joined, int flagWidth = 2, int textPresentationWidth = 1, string source = "default") #Creates a terminal width profile.
Parameters
- emojiWidth int = 2
- ambiguousWidth int = 1
- zwjSequences ConsoleMonster.Text.ZwjRendering = Joined
- flagWidth int = 2
- textPresentationWidth int = 1
- source string = "default"
Methods
public bool Equals(TerminalWidthProfile? other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other ConsoleMonster.Text.TerminalWidthProfile?
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Determines whether the specified object is equal to the current object.
Parameters
- obj object?
- The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.public override int GetHashCode() #Serves as the default hash function.
Returns
int A hash code for the current object.public override string ToString() #Returns a string that represents the current object.
Returns
string A string that represents the current object.public TerminalWidthProfile WithAmbiguousWidth(int value) #Copies this profile with a different ambiguous width.
Parameters
- value int
Returns
TerminalWidthProfilepublic TerminalWidthProfile WithEmojiWidth(int value) #Copies this profile with a different emoji width.
Parameters
- value int
Returns
TerminalWidthProfilepublic TerminalWidthProfile WithFlagWidth(int value) #Copies this profile with a different flag width.
Parameters
- value int
Returns
TerminalWidthProfilepublic TerminalWidthProfile WithSource(string value) #Copies this profile with a different source label.
Parameters
- value string
Returns
TerminalWidthProfilepublic TerminalWidthProfile WithTextPresentationWidth(int value) #Copies this profile with a different text presentation width.
Parameters
- value int
Returns
TerminalWidthProfilepublic TerminalWidthProfile WithZwjSequences(ZwjRendering value) #Copies this profile with a different ZWJ rendering.
Parameters
- value ConsoleMonster.Text.ZwjRendering
Returns
TerminalWidthProfile