TextInfo::ReadOnly Method (TextInfo^)

 

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

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

public:
[ComVisibleAttribute(false)]
static TextInfo^ ReadOnly(
	TextInfo^ textInfo
)

Parameters

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.

-or-

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

Exception Condition
ArgumentNullException

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
Show: