SRichTextBlock

SRichTextBlock

Property Type Note
Aka String Name for the widget
AutoWrapText Bool
DecoratorStyleSet String DecoratorStyleSet
HighLightText String
Justification String Enum: ETextJustify: Left, Center, Right
LineHeightPercentage Number
Margin Number or Number Array (Length = 2 or 4)
Marshaller String "ChameleonRichText"
MinDesiredWidth Number
Text String
TextStyle String For example´╝Ü"TextStyle":
ToolTipText String
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All
WrapTextAt Number
WrappingPolicy String Enum: ETextWrappingPolicy: DefaultWrapping, AllowPerCharacterWrapping

Examples

Example 1:

    "SRichTextBlock":
    {
        "Text": "<RichTextBlock.Bold>Blod</>  <RichTextBlock.TextHighlight>Highlight</>  <Credits.H2>Unreal</>"
    }

Example 2:

    "SRichTextBlock": {
        "Text": "<RichText.red>Red</> <RichText.green>Green</> <RichText.cyan>Blue</><TextStyle FontFamily=\"Roboto\" FontSize=\"13\" FontStyle=\"Italic\" FontColor=\"(R=1, G=1,B=0,A=1)\"> Rich text</>",
        "Marshaller": "ChameleonRichText"
    }

Example 3:

    "SRichTextBlock": {
        "Text": "<TextStyle FontFamily=\"Roboto\" FontSize=\"11\" FontStyle=\"Bold\" FontColor=\"(R=0,G=1,B=0,A=0.5)\">This is a hyperlink: </><a id=\"browser\" href=\"https:\/\/www.unrealengine.com/\" style=\"RichText.Editor.Hyperlink\">Unreal Engine</>",
        "Marshaller": "ChameleonRichText"
    }

Back to Support Slates