Download Now
Forums

    Reference TMarkDownLabel

    Declared in Codebot.Render.Widgets.Custom.pas on line 156

      TMarkDownLabel = class(TLabel)
      protected
        procedure Resize; override;
        procedure Paint(Stage: TPaintStage); override;
      public
        constructor Create(Parent: TWidget; const Name: string = ''); override;
        { The size of plain text, or zero for the size of the theme font }
        property FontSize: Float read FFontSize write SetFontSize;
        { OnDrawRect is called for each rectangle in the markdown when the label is
          drawn, after the backgrounds of code blocks and quotes and before the text }
        property OnDrawRect: TMarkDownRectEvent read FOnDrawRect write FOnDrawRect;
      end;

    See also

    Float in Codebot.System.pas
    TLabel in Codebot.Render.Widgets.pas
    TPaintStage in Codebot.Render.Widgets.pas
    TWidget in Codebot.Render.Widgets.pas