Back to Devexpress

RepositoryItemCheckedComboBoxEdit.GetCheckedItems(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-dot-getcheckeditems-x28-system-dot-object-x29.md

latest2.8 KB
Original Source

RepositoryItemCheckedComboBoxEdit.GetCheckedItems(Object) Method

Returns an object that specifies checked items.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public object GetCheckedItems(
    object editValue
)
vb
Public Function GetCheckedItems(
    editValue As Object
) As Object

Parameters

NameTypeDescription
editValueObject

An object that specifies the edit value.

|

Returns

TypeDescription
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

EditValueType

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace