Skip to main content
A newer version of this page is available. .
Tab

NewsItemCollection.FindByText(String) Method

Returns an item by its text.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public NewsItem FindByText(
    string text
)

Parameters

Name Type Description
text String

A string value that specifies the text of the requested item.

Returns

Type Description
NewsItem

A NewsItem object with the specified contents. null (Nothing in Visual Basic) if the item isn’t found.

Remarks

The FindByText method returns the first item found whose NewsItem.Text property’s value matches the specified string.

See Also