Skip to content

BuiltInStyles

ClassTextStudio.BuiltInsTextStudio
public static class BuiltInStyles

Code-defined default stylesheet mapping common rich-text tags to built-in effects. No asset file is shipped.

public static bool TryResolve(string tagName, out string effectId)

True if the given tag name refers to a known built-in effect.

Parameters

Name Type Description
tagName System.String
effectId System.String

Returns

System.Boolean — No return description is available.

public static bool IsNativeRichTextFormatting(string tagName)

True if a tag should be emitted verbatim into the display text so the text backend (TMP) can render it natively.

Parameters

Name Type Description
tagName System.String

Returns

System.Boolean — No return description is available.

public static bool IsNativeRichTextFormatting(string tagName, bool hasParameter)

No description is available for this member.

Parameters

Name Type Description
tagName System.String
hasParameter System.Boolean

Returns

System.Boolean — No return description is available.

IsSelfContainedNativeRichTextFormatting(string, bool)

Section titled “IsSelfContainedNativeRichTextFormatting(string, bool)”
public static bool IsSelfContainedNativeRichTextFormatting(string tagName, bool hasParameter)

No description is available for this member.

Parameters

Name Type Description
tagName System.String
hasParameter System.Boolean

Returns

System.Boolean — No return description is available.

public static DecorationBits ResolveDecorationBit(string tagName)

Map a Text Studio custom decoration tag name to the bit it sets on TextStudio.TextStudioCompiledPlan.CharDecorations. Returns TextStudio.DecorationBits.None for unknown names.

Parameters

Name Type Description
tagName System.String

Returns

TextStudio.DecorationBits — No return description is available.

public static bool IsCustomDecorationTag(string tagName)

True if the tag is a Text Studio custom decoration marker (uu, o). Custom decoration tags are not passed through to TMP and don’t participate in effect binding resolution - they’re consumed purely as decoration range markers.

Parameters

Name Type Description
tagName System.String

Returns

System.Boolean — No return description is available.

public static IReadOnlyDictionary<string, string> DefaultTagMap { get; }

Tag name -> effect id. Used by StyleResolver when a tag is unknown locally but matches a registered built-in effect.

Returns

System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} — No return description is available.

public static IReadOnlyList<TextStudioNativeRichTextTagDescriptor> NativeRichTextTagDescriptors { get; }

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{TextStudio.BuiltIns.TextStudioNativeRichTextTagDescriptor} — No return description is available.