[This is preliminary documentation and is subject to change.]

The Text type exposes the following members.

Methods

  NameDescription
Cast
Casts the object specified in the basedOn parameter to a Text. If the cast fails an InvalidCastException is thrown
CompareTo (Overrides DataTypeBase..::.CompareTo(Object).)
Contains
Checks if the Text contains the textToLookFor
EqualsOverloaded.
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetEnumerator
GetHashCode (Overrides Object..::.GetHashCode()()().)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IndexOf
Returns the index of the first occurrence of the textToLookFor
Insert
Inserts a specified instance of Text at a specified index position in this instance
Left
Returns the numOfChars characters from the start of the text
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RemoveOverloaded.
Replace
Replaces all the occurrences of the textToLookFor with the textToReplace
Reverse
Returns a flipped copy of this text
Right
Returns the numOfChars characters from the end of the text.
SubstringOverloaded.
ToLower
Returns a copy of the text in lowercase
ToStringOverloaded.
Returns a String that represents the current Text. The result string is formatted using the format provided in the format parameter.
ToText
ToUpper
Returns a copy of the text in uppercase
Trim
Returns a trimmed version of the text.
TrimEnd
Returns the text without space characters at the end
TrimStart
Returns the text without space characters at the start
TryCast
Tries to cast the object specified in the basedOn parameter to a Boolean.

Operators

Extension Methods

  NameDescription
ShouldBe
Verifies that the actual value matches the expected value
(Defined by Should.)

See Also