[]
Creates a formatted result.
public static FormatResult Create(RichText richText)
Public Shared Function Create(richText As RichText) As FormatResult
Type | Name | Description |
---|---|---|
RichText | richText | The text with style setting(s). |
Type | Description |
---|---|
FormatResult | A FormatResult value represents the formatted result. |
Creates a formatted result.
public static FormatResult Create(string text, DisplayValueStyle displayStyle = DisplayValueStyle.Text, FormatColorEnum color = FormatColorEnum.None)
Public Shared Function Create(text As String, Optional displayStyle As DisplayValueStyle = DisplayValueStyle.Text, Optional color As FormatColorEnum = FormatColorEnum.None) As FormatResult
Type | Name | Description |
---|---|---|
string | text | The formatted text. |
DisplayValueStyle | displayStyle | A DisplayValueStyle value indicates how's text displayed. |
FormatColorEnum | color | The color of the formatted text. |
Type | Description |
---|---|
FormatResult | A FormatResult value represents the formatted result. |
Creates a formatted result with repeat character.
public static FormatResult Create(string text, int repeatCharIndex, char repeatChar, DisplayValueStyle displayStyle = DisplayValueStyle.Text, FormatColorEnum color = FormatColorEnum.None)
Public Shared Function Create(text As String, repeatCharIndex As Integer, repeatChar As Char, Optional displayStyle As DisplayValueStyle = DisplayValueStyle.Text, Optional color As FormatColorEnum = FormatColorEnum.None) As FormatResult
Type | Name | Description |
---|---|---|
string | text | The formatted text. |
int | repeatCharIndex | The position of the repeat character in the formatted |
char | repeatChar | The repeat character to fulfil display space. |
DisplayValueStyle | displayStyle | A DisplayValueStyle value indicates how's text displayed. |
FormatColorEnum | color | The color of the formatted text. |
Type | Description |
---|---|
FormatResult | A FormatResult value represents the formatted result. |