BuiltInStyles
public static class BuiltInStylesCode-defined default stylesheet mapping common rich-text tags to built-in effects. No asset file is shipped.
Methods
Section titled “Methods”
TryResolve(string, out string)
Section titled “TryResolve(string, out string)”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.
IsNativeRichTextFormatting(string)
Section titled “IsNativeRichTextFormatting(string)”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.
IsNativeRichTextFormatting(string, bool)
Section titled “IsNativeRichTextFormatting(string, bool)”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.
ResolveDecorationBit(string)
Section titled “ResolveDecorationBit(string)”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.
IsCustomDecorationTag(string)
Section titled “IsCustomDecorationTag(string)”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.
Properties
Section titled “Properties”
DefaultTagMap
Section titled “DefaultTagMap”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.
NativeRichTextTagDescriptors
Section titled “NativeRichTextTagDescriptors”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.