Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft