Skip to content

T_Ekstrand_Text_StringOperations

Fred Ekstrand edited this page Aug 4, 2020 · 1 revision

StringOperations Class

A collection of string extension operations.

Inheritance Hierarchy

System.Object
  Ekstrand.Text.StringOperations
Namespace: Ekstrand.Text
Assembly: StringOperations (in StringOperations.dll) Version: 1.0.0.3 (1.0.0.3)

Syntax

C#

public static class StringOperations

VB

<ExtensionAttribute>
Public NotInheritable Class StringOperations

C++

[ExtensionAttribute]
public ref class StringOperations abstract sealed

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type StringOperations =  class end

The StringOperations type exposes the following members.

Methods

 

Name Description
Public methodStatic member EscapeIllegalChars Remove all escape and illegal characters in a file name
Public methodStatic member FirstCharToLowercase Returns a new string in which the first character in the string is set to lower case.
Public methodStatic member FirstCharToUppercase Returns a new string in which the first character in the string is set to upper case.
Public methodStatic member PadCenter Center align text in a defined string column.
Public methodStatic member PadCenterCrop Center align text in a defined string column. If given string is larger it would be centered and crop on both ends.
Public methodStatic member PadLeftCrop Right align text in a defined string column.
Public methodStatic member PadRightCrop Left align text in a defined string column.
Public methodStatic member Remove(String, Char[]) Returns a new string in which the specified characters from the current string are deleted.
Public methodStatic member Remove(String, String[]) Returns a new string in which the specified substrings from the current string are deleted.
Public methodStatic member Replace(String, Char[], Char) Returns a new string in which all occurrences of all Unicode character in an array with the specified Unicode character.
Public methodStatic member Replace(String, Char[], Char[]) Returns a new string in which all occurrences of all Unicode characters in an array are replaced with the specified Unicode characters in an array at the same element index.
Public methodStatic member Replace(String, String[], String) Returns a new string in which all occurrences of all substring in an array with the specified Unicode character.
Public methodStatic member ToTitleCase Converts the specified string to titlecase
  Back to Top

See Also

Reference

Ekstrand.Text Namespace

Clone this wiki locally