Skip to content

TextStudioPreviewDiagnostic

StructTextStudioTextStudio
public readonly struct TextStudioPreviewDiagnostic

Renderer-specific preview status with an optional suggested action.

public readonly TextStudioPreviewDiagnosticSeverity Severity

Returns

TextStudio.TextStudioPreviewDiagnosticSeverity

public readonly string Message

Returns

System.String

public readonly string Action

Returns

System.String

TextStudioPreviewDiagnostic(TextStudioPreviewDiagnosticSeverity, string, string)

Section titled “TextStudioPreviewDiagnostic(TextStudioPreviewDiagnosticSeverity, string, string)”
public TextStudioPreviewDiagnostic(TextStudioPreviewDiagnosticSeverity severity, string message, string action = "")

Creates a diagnostic with normalized non-null text.

Parameters

Name Type
severity TextStudio.TextStudioPreviewDiagnosticSeverity
message System.String
action System.String