Table of Contents

Method MirrorBrackets

Namespace
DocWright.Core.Text
Assembly
DocWright.Core.dll

MirrorBrackets(string, bool)

Mirrors bracket-like characters when rendered in RTL context.

public static string MirrorBrackets(string text, bool rightToLeftContext)

Parameters

text string

The source text.

rightToLeftContext bool

Whether RTL mirroring should be applied.

Returns

string

The mirrored text when needed; otherwise the original text.