Click or drag to resize
OptionsDesigner.GetUniqueItem 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.FormEngine.Web.UI
Assembly: CMS.FormEngine.Web.UI (in CMS.FormEngine.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static string GetUniqueItem(
	IEnumerable<string> items,
	string prefix = "Option "
)

Parameters

items
Type: System.Collections.Generic.IEnumerable<String>
Source collection of items
prefix (Optional)
Type: System.String
Prefix used in value; default value is 'Option '

Return Value

Type: String
See Also