PageAdapter.TransformText(String) Method
In diesem Artikel
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transforms text for the target browser.
public:
virtual System::String ^ TransformText(System::String ^ text);
public virtual string TransformText(string text);
abstract member TransformText : string -> string
override this.TransformText : string -> string
Public Overridable Function TransformText (text As String) As 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.
When you inherit from the PageAdapter class, you can override TransformText(String) 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(String) method can be overridden to find that tag and change it.
Applies to
Produkt | Versionen |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: