StringBuilderExtensionsRemoveEnd Method
Removes the specified range of characters from the source StringBuilder,
starting from the end of the string.
Namespace: DevCase.Extensions.StringBuilderExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void RemoveEnd(
this StringBuilder source,
int length
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub RemoveEnd (
source As StringBuilder,
length As Integer
)
Dim source As StringBuilder
Dim length As Integer
source.RemoveEnd(length)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void RemoveEnd(
StringBuilder^ source,
int length
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member RemoveEnd :
source : StringBuilder *
length : int -> unit
No code example is currently available or this language may not be supported.
- source StringBuilder
-
The source StringBuilder.
- length Int32
-
The number of characters to delete from the end of the string.
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim sb As New StringBuilder()
sb.Append("Hello World+++")
sb.RemoveEnd(3) 'Removes the "+++" chars.
MessageBox.Show(sb.ToString())
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.