TextInfo.ReadOnly Method (TextInfo)


Returns a read-only version of the specified TextInfo object.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

static member ReadOnly : 
        textInfo:TextInfo -> TextInfo


Type: System.Globalization.TextInfo

A TextInfo object.

Return Value

Type: System.Globalization.TextInfo

The TextInfo object specified by the textInfo parameter, if textInfo is read-only.


A read-only memberwise clone of the TextInfo object specified by textInfo, if textInfo is not read-only.

Exception Condition

textInfo is null.

The following code example demonstrates the Clone and ReadOnly methods.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top