Class OdfFormulaDiagnostic
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
codestringmessagestringseverityOdfFormulaDiagnosticSeverity
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
codestringThe diagnostic code. / 診斷代碼。
messagestringThe diagnostic message. / 診斷訊息。
severityOdfFormulaDiagnosticSeverityThe diagnostic severity. / 診斷嚴重性。
positionint?The character position in the formula, or null when unavailable. / 公式中的字元位置,若無位置資訊則為 null。
Properties
Code
Gets the diagnostic code. 取得診斷代碼。
public string Code { get; }
Property Value
Message
Gets the diagnostic message. 取得診斷訊息。
public string Message { get; }
Property Value
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; }