Class AbstractGlobalizationSettings

Class AbstractGlobalizationSettings

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Represents the globalization settings.

public abstract class AbstractGlobalizationSettings

Inheritance

objectAbstractGlobalizationSettings

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

AbstractGlobalizationSettings()

protected AbstractGlobalizationSettings()

Methods

Compare(string, string, bool)

Compares two string values according to certain collation rules.

public virtual int Compare(string v1, string v2, bool ignoreCase)

Parameters

v1 string

the first string

v2 string

the second string

ignoreCase bool

whether ignore case when comparing values

Returns

int

Integer that indicates the lexical relationship between the two comparands

GetCollationKey(string, bool)

Transforms the string into a comparable object according to certain collation rules.

public virtual IComparable GetCollationKey(string v, bool ignoreCase)

Parameters

v string

String value needs to be compared with others.

ignoreCase bool

whether ignore case when comparing values

Returns

IComparable

Object can be used to compare or sort string values