This documentation is archived and is not being maintained.

PageAdapter::TransformText Method

Transforms text for the target browser.

Namespace:  System.Web.UI.Adapters
Assembly:  System.Web (in System.Web.dll)

public:
virtual String^ TransformText(
	String^ text
)

Parameters

text
Type: System::String
A String that is the text to transform.

Return Value

Type: System::String
A String that contains the transformed text.

The TransformText method can be used, for example, to transform tab characters (\t) into line breaks (\n).

The TransformText base method returns text unchanged.

Notes to Inheritors

When you inherit from the PageAdapter class, you can override TransformText if a particular markup has a construct with a different form from standard HTML. For example, if a browser requires a different identifier for a tag than what would be used in HTML, TransformText method can be overridden to find that tag and change it.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: