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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin