StringBuilderExtensions Class

Contains custom extension methods to use with the StringBuilder type.

Definition

Namespace: DevCase.Extensions.StringBuilderExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class StringBuilderExtensions
Inheritance
Object    StringBuilderExtensions

Methods

AppendFormatLine(StringBuilder, String, Object) Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance.

Each format item is replaced by the string representation of a single argument.

Finally, appends the default line terminator to the end of the StringBuilder object.

AppendFormatLine(StringBuilder, String, Object) Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance.

Each format item is replaced by the string representation of a corresponding argument in a parameter array.

Finally, appends the default line terminator to the end of the StringBuilder object.

AppendFormatLine(StringBuilder, IFormatProvider, String, Object) Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance.

Each format item is replaced by the string representation of a corresponding argument in a parameter array using a specified format provider.

Finally, appends the default line terminator to the end of the StringBuilder object.

AppendFormatLine(StringBuilder, String, Object, Object) Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance.

Each format item is replaced by the string representation of either of two arguments.

Finally, appends the default line terminator to the end of the StringBuilder object.

AppendFormatLine(StringBuilder, String, Object, Object, Object) Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance.

Each format item is replaced by the string representation of either of three arguments.

Finally, appends the default line terminator to the end of the StringBuilder object.

EndsWith(StringBuilder, Char, StringComparison) Determines whether the source StringBuilder ends with the specified character.
EndsWith(StringBuilder, String, StringComparison) Determines whether the source StringBuilder ends with the specified text.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOf(StringBuilder, Char, StringComparison) Searches for the specified character in the source StringBuilder, and returns the zero-based index position of the first occurence.
IndexOf(StringBuilder, String, StringComparison) Searches for the specified string in the source StringBuilder, and returns the zero-based index position of the first occurence.
IndexOf(StringBuilder, Char, Int32, StringComparison) Searches for the specified character in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the first occurence.
IndexOf(StringBuilder, String, Int32, StringComparison) Searches for the specified string in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the first occurence.
IndexOf(StringBuilder, Char, Int32, Int32, StringComparison) Searches for the specified character within a range of characters in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the first occurence.
IndexOf(StringBuilder, String, Int32, Int32, StringComparison) Searches for the specified string within a range of characters in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the first occurence.
LastIndexOf(StringBuilder, Char, StringComparison) Searches for the specified character in the source StringBuilder, and returns the zero-based index position of the last occurence.
LastIndexOf(StringBuilder, String, StringComparison) Searches for the specified string in the source StringBuilder, and returns the zero-based index position of the last occurence.
LastIndexOf(StringBuilder, Char, Int32, StringComparison) Searches for the specified character in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the last occurence.
LastIndexOf(StringBuilder, String, Int32, StringComparison) Searches for the specified string in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the last occurence.
LastIndexOf(StringBuilder, Char, Int32, Int32, StringComparison) Searches for the specified character within a range of characters in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the last occurence.
LastIndexOf(StringBuilder, String, Int32, Int32, StringComparison) Searches for the specified string within a range of characters in the source StringBuilder, starting from the specified index, and returns the zero-based index position of the last occurence.
RemoveEnd Removes the specified range of characters from the source StringBuilder, starting from the end of the string.
StartsWith(StringBuilder, Char, StringComparison) Determines whether the source StringBuilder ends with the specified character.
StartsWith(StringBuilder, String, StringComparison) Determines whether the source StringBuilder ends with the specified text.
ToString Returns a string that represents the current object.
(Inherited from Object)
WordWrap(StringBuilder, Int32, Boolean) Wraps the input text into multiple lines whose words will fit into the specified line length.
WordWrap(StringBuilder, Int32, Font) Wraps words of the source StringBuilder to the beginning of the next line when necessary to fit the specified pixel width.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also