VectSharp 2.5.0
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.Markdown.FormattedString Struct Reference

Represents a string with associated formatting information. More...

Public Member Functions

 FormattedString (string text, Colour colour, bool isBold, bool isItalic)
 Creates a new FormattedString instance. More...
 

Properties

string Text [get]
 The text represented by this object. More...
 
Colour Colour [get]
 The colour of the text. More...
 
bool IsBold [get]
 Whether the text should be rendered as bold or not. More...
 
bool IsItalic [get]
 Whether the text should be rendered as italic or not. More...
 

Detailed Description

Represents a string with associated formatting information.

Definition at line 32 of file SyntaxHighlighting.cs.

Constructor & Destructor Documentation

◆ FormattedString()

VectSharp.Markdown.FormattedString.FormattedString ( string  text,
Colour  colour,
bool  isBold,
bool  isItalic 
)

Creates a new FormattedString instance.

Parameters
textThe text of the object.
colourThe colour of the text.
isBoldWhether the text should be rendered as bold or not.
isItalicWhether the text should be rendered as italic or not.

Definition at line 61 of file SyntaxHighlighting.cs.

Property Documentation

◆ Colour

Colour VectSharp.Markdown.FormattedString.Colour
get

The colour of the text.

Definition at line 42 of file SyntaxHighlighting.cs.

◆ IsBold

bool VectSharp.Markdown.FormattedString.IsBold
get

Whether the text should be rendered as bold or not.

Definition at line 47 of file SyntaxHighlighting.cs.

◆ IsItalic

bool VectSharp.Markdown.FormattedString.IsItalic
get

Whether the text should be rendered as italic or not.

Definition at line 52 of file SyntaxHighlighting.cs.

◆ Text

string VectSharp.Markdown.FormattedString.Text
get

The text represented by this object.

Definition at line 37 of file SyntaxHighlighting.cs.


The documentation for this struct was generated from the following file: