Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemCheckedComboBoxEdit.GetCheckedItems(Object) Method

Returns an object that specifies checked items.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public object GetCheckedItems(
    object editValue
)

#Parameters

Name Type Description
editValue Object

An object that specifies the edit value.

#Returns

Type Description
Object

An object that specifies checked items.

#Remarks

When the editor is not displaying bit fields (flags), the GetCheckedItems method returns a string. This string is formed by concatenating values (strings) of all checked items, delimited by a specific separator character (RepositoryItemCheckedComboBoxEdit.SeparatorChar). In addition, the space character is added after each separator character.

If the CheckedComboBoxEdit displays a set of bit fields (flags), the GetCheckedItems method returns an integer value that is the sum of the values of individual checked flags. If any flag in the bound Enumeration has a negative value, the GetCheckedItems method’s return value is of the Int64 type. Otherwise, the return value is of the UInt64 type.

If the edit value is represented as a list of objects (see RepositoryItemCheckedComboBoxEdit.EditValueType), the GetCheckedItems method returns the System.Collections.Generic.List<object> object containing the corresponding values.

See Also