TextUtils

Wisej.Base.TextUtils

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.0.0.0)

Provides utility methods to measure, encode, and extract mnemonics from text.

public class TextUtils

Fields

Methods

Escapes special characters in the specified string.

Returns: String. The escaped string. Null if the specified string was null, or empty if it was empty.

Removes the ampersand from the text and encodes HTML characters if necessary.

Returns: String. The escaped string. Null if the specified string was null, or empty if it was empty.

Returns the first character that is preceded by an ampersand (&).

Returns: String.

Returns the size of the specified text when rendered with the specified font.

Returns: Size. The computed Size of the specified text.

Returns the size of the specified text when rendered with the specified font.

Returns: Size. The computed Size of the specified text.

Returns the size of the specified text when rendered with the specified font.

Returns: Size.

Returns the size of the specified text when rendered with the specified font.

Returns: Size.

Returns the size of the specified text when rendered with the specified font.

Returns the size of the specified text when rendered with the specified font.

Asynchronously returns the size of the specified text when rendered with the specified font. The measurement is performed on the browser. Returns an awaitable Task that contains the measured size.

Returns: Task<Size>. An awaitable Task that represents the asynchronous operation.

Last updated