SKPaint.CountGlyphs 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
CountGlyphs(Byte[]) |
Returns the number of glyphs in text. |
CountGlyphs(ReadOnlySpan<Byte>) | |
CountGlyphs(ReadOnlySpan<Char>) | |
CountGlyphs(String) |
Returns the number of glyphs in text. |
CountGlyphs(IntPtr, Int32) |
Returns the number of glyphs in text. |
CountGlyphs(IntPtr, IntPtr) |
Returns the number of glyphs in text. |
CountGlyphs(Byte[])
Returns the number of glyphs in text.
public int CountGlyphs (byte[] text);
Parameters
- text
- Byte[]
The text encoded using the encoding specified in TextEncoding format.
Returns
Returns the number of glyphs in text.
Applies to
CountGlyphs(ReadOnlySpan<Byte>)
public int CountGlyphs (ReadOnlySpan<byte> text);
Parameters
- text
- ReadOnlySpan<Byte>
Returns
Applies to
CountGlyphs(ReadOnlySpan<Char>)
public int CountGlyphs (ReadOnlySpan<char> text);
Parameters
- text
- ReadOnlySpan<Char>
Returns
Applies to
CountGlyphs(String)
CountGlyphs(IntPtr, Int32)
Returns the number of glyphs in text.
public int CountGlyphs (IntPtr text, int length);
Parameters
- text
- IntPtr
The text buffer encoded using the encoding specified in TextEncoding format.
- length
- Int32
The length of the text buffer.
Returns
Returns the number of glyphs in text.
Applies to
CountGlyphs(IntPtr, IntPtr)
Returns the number of glyphs in text.
public int CountGlyphs (IntPtr text, IntPtr length);
Parameters
- text
- IntPtr
The text buffer encoded using the encoding specified in TextEncoding format.
- length
- IntPtr
The length of the text buffer.
Returns
Returns the number of glyphs in text.