Click or drag to resize
OptionsDesignerGetUniqueItem Method
Returns unique value in format "prefix{number}" where number will be higher than highest number from source options. (Apply only to strings in format "prefix{number}").

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 8.2.23
Syntax
C#
public static string GetUniqueItem(
	IEnumerable<string> items,
	string prefix = "Option "
)

Parameters

items
Type: System.Collections.GenericIEnumerableString
Source collection of items
prefix (Optional)
Type: SystemString
Prefix used in value; default value is 'Option '

Return Value

Type: String
See Also