OdsValidation
OfficeIMO.OpenDocument
An XML-backed spreadsheet content validation rule.
Inheritance
- object
- OdsValidation
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method OdsDocument.AddValidation
- Property OdsDocument.Validations
Methods
public void EnsureErrorMessage(OdsValidationMessageType messageType = Stop, bool display = true) #Ensures an error-message element exists even when it has no title or body.
Parameters
- messageType OfficeIMO.OpenDocument.OdsValidationMessageType = Stop
- display bool = true
public void EnsureHelpMessage(bool display = true) #Ensures an input-help element exists even when it has no title or body.
Parameters
- display bool = true
public void SetErrorMessage(string? title, string? text, OdsValidationMessageType messageType = Stop, bool display = true) #Sets the optional error shown when the entered value fails validation.
Parameters
- title string?
- text string?
- messageType OfficeIMO.OpenDocument.OdsValidationMessageType = Stop
- display bool = true
public void SetHelpMessage(string? title, string? text, bool display = true) #Sets the optional input help shown when a validated cell is selected.
Parameters
- title string?
- text string?
- display bool = true
Inherited Methods
Properties
public string? BaseCellAddress { get; set; } #Absolute sheet-qualified base cell used to evaluate relative references in the condition.
public OdsValidationConditionSyntax? ParsedCondition { get; set; } #Typed interoperable condition, or null when the preserved expression is implementation-specific.
public OdsValidationDisplayList DisplayList { get; set; } #How list-validation values are displayed. ODF defaults to OdsValidationDisplayList.Unsorted.
public bool HasErrorMessage { get; } #Whether a validation-error element is present.
public OdsValidationMessageType ErrorMessageType { get; } #Validation-error severity.