Table of Contents

Class OdfFormulaDiagnostic

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Represents a formula analysis diagnostic. 表示公式分析診斷。

public sealed class OdfFormulaDiagnostic
Inheritance
OdfFormulaDiagnostic
Inherited Members

Constructors

OdfFormulaDiagnostic(string, string, OdfFormulaDiagnosticSeverity)

Short overload of OdfFormulaDiagnostic that accepts code, message, and severity; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 code、message 與 severity;其餘可選參數使用預設值並轉呼叫最長 OdfFormulaDiagnostic 多載。

public OdfFormulaDiagnostic(string code, string message, OdfFormulaDiagnosticSeverity severity)

Parameters

code string
message string
severity OdfFormulaDiagnosticSeverity

OdfFormulaDiagnostic(string, string, OdfFormulaDiagnosticSeverity, int?)

Initializes a new instance of the OdfFormulaDiagnostic class. 初始化 OdfFormulaDiagnostic 類別的新執行個體。

public OdfFormulaDiagnostic(string code, string message, OdfFormulaDiagnosticSeverity severity, int? position)

Parameters

code string

The diagnostic code. / 診斷代碼。

message string

The diagnostic message. / 診斷訊息。

severity OdfFormulaDiagnosticSeverity

The diagnostic severity. / 診斷嚴重性。

position int?

The character position in the formula, or null when unavailable. / 公式中的字元位置,若無位置資訊則為 null。

Properties

Code

Gets the diagnostic code. 取得診斷代碼。

public string Code { get; }

Property Value

string

Message

Gets the diagnostic message. 取得診斷訊息。

public string Message { get; }

Property Value

string

Position

Gets the character position in the formula, or null when unavailable. 取得公式中的字元位置,若無位置資訊則為 null。

public int? Position { get; }

Property Value

int?

Severity

Gets the diagnostic severity. 取得診斷嚴重性。

public OdfFormulaDiagnosticSeverity Severity { get; }

Property Value

OdfFormulaDiagnosticSeverity