StringUtilities.GetEncodedText Method
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.
Overloads
GetEncodedText(ReadOnlySpan<Char>, SKTextEncoding) | |
GetEncodedText(String, SKEncoding) |
Obsolete.
Encodes the specified string using the encoding as a byte array. |
GetEncodedText(String, SKTextEncoding) |
Encodes the specified string using the encoding as a byte array. |
GetEncodedText(ReadOnlySpan<Char>, SKTextEncoding)
public static byte[] GetEncodedText (ReadOnlySpan<char> text, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- ReadOnlySpan<Char>
- encoding
- SKTextEncoding
Returns
Applies to
GetEncodedText(String, SKEncoding)
Caution
Use GetEncodedText(string, SKTextEncoding) instead.
Encodes the specified string using the encoding as a byte array.
[System.Obsolete("Use GetEncodedText(string, SKTextEncoding) instead.")]
public static byte[] GetEncodedText (string text, SkiaSharp.SKEncoding encoding);
Parameters
- text
- String
The text to encode.
- encoding
- SKEncoding
The encoding to use.
Returns
Returns the encoded text as a byte array.
- Attributes
Applies to
GetEncodedText(String, SKTextEncoding)
Encodes the specified string using the encoding as a byte array.
public static byte[] GetEncodedText (string text, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- String
The text to encode.
- encoding
- SKTextEncoding
The encoding to use.
Returns
Returns the encoded text as a byte array.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for