Class TextMeasurer
Inheritance
System.Object
TextMeasurer
Assembly: IronXL.dll
Syntax
public static class TextMeasurer : Object
Methods
CountLines(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)
Declaration
public static int CountLines( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
Returns
| Type |
Description |
| System.Int32 |
|
CountLines(String, TextOptions)
Declaration
public static int CountLines(string text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
Returns
| Type |
Description |
| System.Int32 |
|
MeasureAdvance(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)
Declaration
public static FontRectangle MeasureAdvance( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
Returns
MeasureAdvance(String, TextOptions)
Declaration
public static FontRectangle MeasureAdvance(string text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
Returns
MeasureBounds(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)
Declaration
public static FontRectangle MeasureBounds( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
Returns
MeasureBounds(String, TextOptions)
Declaration
public static FontRectangle MeasureBounds(string text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
Returns
MeasureSize(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)
Declaration
public static FontRectangle MeasureSize( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
Returns
MeasureSize(String, TextOptions)
Declaration
public static FontRectangle MeasureSize(string text, TextOptions options)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
Returns
TryMeasureCharacterAdvances(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterAdvances( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >advances)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
advances |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryMeasureCharacterAdvances(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterAdvances(string text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >advances)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
advances |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryMeasureCharacterBounds(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterBounds( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >bounds)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
bounds |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryMeasureCharacterBounds(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterBounds(string text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >bounds)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
bounds |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryMeasureCharacterSizes(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterSizes( < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >sizes)
Parameters
| Type |
Name |
Description |
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
sizes |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryMeasureCharacterSizes(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)
Declaration
public static bool TryMeasureCharacterSizes(string text, TextOptions options, out < ca447e5d - 251 c - 4902 - 9f 79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >sizes)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| TextOptions |
options |
|
| System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> |
sizes |
|
Returns
| Type |
Description |
| System.Boolean |
|