Click or drag to resize
WebUIExtensionsFindByValue Method
Searches the collection for a System.Web.UI.WebControls.ListItem with a System.Web.UI.WebControls.ListItem.Value property that contains the specified value.

Namespace: CMS.FormEngine.Web.UI
Assembly: CMS.FormEngine.Web.UI (in CMS.FormEngine.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static ListItem FindByValue(
	this ListItemCollection collection,
	string value,
	bool ignoreCase
)

Parameters

collection
Type: System.Web.UI.WebControlsListItemCollection
Given collection
value
Type: SystemString
Value to search for
ignoreCase
Type: SystemBoolean
A System.Boolean indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.)

Return Value

Type: ListItem

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListItemCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also