get_effective_value method

get_effective_value(index, number_style, custom_number_style_format)

Reports the string representation of the ListLevel object for the specified index of the list item. Parameters specify the NumberStyle and an optional format string used when NumberStyle.CUSTOM is specified.

def get_effective_value(self, index: int, number_style: aspose.words.NumberStyle, custom_number_style_format: str):
    ...
ParameterTypeDescription
indexintThe index of the list item (must be in the range from 1 to 32767).
number_styleNumberStyleThe NumberStyle of the ListLevel object.
custom_number_style_formatstrThe optional format string used when NumberStyle.CUSTOM is specified (e.g. “a, ç, ĝ, …”). In other cases, this parameter must be None or empty.

Returns

The string representation of the ListLevel object, described by the numberStyle parameter and thecustomNumberStyleFormat parameter, in the list item at the position determined by theindex parameter.

Exceptions

exceptioncondition
RuntimeError (Proxy error(ArgumentException))customNumberStyleFormat isNone or empty when the numberStyle is custom.-or-customNumberStyleFormat is notNone or empty when the numberStyle is non-custom.-or-customNumberStyleFormat is invalid.
RuntimeError (Proxy error(ArgumentOutOfRangeException))index is out of range.

See Also