DefinedNameUtility

DefinedNameUtility

Vue de l’ensemble

‘DefinedNameUtility’ est une classe dans Aspose.Cells FOSS pour C++.

Il fournit des assistants de normalisation et de validation pour les noms définis.

Cette classe fournit 5 méthodes pour travailler avec DefinedNameUtility objets dans les programmes C++. Les méthodologies disponibles comprennent: IsReservedSignal, NormalizeComment , normalizFormula et SameScope. Tous les membres publics sont accessibles à n’importe quelle application C ++ après l’installation de l’Aspose.Cells FOSS pour le package C+.

méthodes

SignatureDescription
IsReservedName(name: std::string_view)boolReturns true if the given name matches one of the reserved built-in defined names (case-insensitive).
NormalizeName(name: std::string_view)std::stringTrims and validates a defined name. Throws CellsException if the name is empty or is a reserved built-in name.
NormalizeFormula(formula: std::string_view)std::stringTrims a formula, strips a leading ‘=’ if present, and trims again. Throws CellsException if the result is empty.
NormalizeComment(comment: std::string_view)std::stringTrims a comment and returns the result.
SameScope(left: std::optional<int>, right: std::optional<int>)boolReturns true when both scopes are absent or both are present with equal values.

Voir aussi

  • Aspose.Cells — référence API d’entreprise
 Français