Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdsValidation

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

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 optional
display bool = true optional
public void EnsureHelpMessage(bool display = true) #

Ensures an input-help element exists even when it has no title or body.

Parameters

display bool = true optional
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? required
text string? required
messageType OfficeIMO.OpenDocument.OdsValidationMessageType = Stop optional
display bool = true optional
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? required
text string? required
display bool = true optional

Properties

public string Name { get; } #

Validation name.

public string Condition { get; set; } #

Preserved ODF validation condition.

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 bool AllowEmptyCell { get; set; } #

Whether empty cells satisfy the rule.

public OdsValidationDisplayList DisplayList { get; set; } #

How list-validation values are displayed. ODF defaults to OdsValidationDisplayList.Unsorted.

public string? HelpTitle { get; } #

Input-help title, if present.

public bool HasHelpMessage { get; } #

Whether an input-help element is present.

public string? HelpText { get; } #

Input-help text, if present.

public bool ShowHelpMessage { get; } #

Whether input help is displayed.

public string? ErrorTitle { get; } #

Validation-error title, if present.

public bool HasErrorMessage { get; } #

Whether a validation-error element is present.

public string? ErrorText { get; } #

Validation-error text, if present.

public bool ShowErrorMessage { get; } #

Whether validation errors are displayed.

public OdsValidationMessageType ErrorMessageType { get; } #

Validation-error severity.