windowsforms-devexpress-dot-xtrabars-dot-barcheckitem-ddd7744e.md
Gets or sets a value indicating whether the item is in the pushed state.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Bindable(false)]
[DefaultValue(false)]
public virtual bool Checked { get; set; }
<DefaultValue(False)>
<Bindable(False)>
Public Overridable Property Checked As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the item is currently in the pushed state; otherwise, false.
|
Use the Checked property to specify the check state of a bar item (checked or unchecked). When this property’s value is true , the check item appears sunken.
Changing the Checked property value raises the BarCheckItem.CheckedChanged event.
Important
To bind the item’s checked state to a specific source via the BarItem.DataBindings collection, use the BarCheckItem.BindableChecked property rather than the Checked property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Checked property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if (sourceCell != null && e.SheetName == sourceCell.Worksheet.Name)
biFormatPainter.Checked = false;
}
{
enableBarItem.Checked = showTitlesBarItem.Checked = allowCollapsingBarItem.Checked = false;
enableBarItem.Enabled = showTitlesBarItem.Enabled =
how-to-export-cell-range-to-a-datatable/CS/ExportToDataTableExample/Form1.cs#L23
{
if (barCheckItemStopEmptyRow.Checked) {
ExportSelectionStopOnEmptyRow();
public bool Checked {
get { return BarItem.Checked; }
set { BarItem.Checked = value; }
if(SelectedCustomItem != null) {
barShowLabelsItem.Checked = SelectedCustomItem.Metadata.ShowLabels;
barShowLegendItem.Checked = SelectedCustomItem.Metadata.ShowLegend;
If chartItem.Panes.Count>1 Then
allowCollapsingBarItem.Checked = False
showTitlesBarItem.Checked = allowCollapsingBarItem.Checked
Private Sub Spreadsheet_SheetRemoving(ByVal sender As Object, ByVal e As SheetRemovingEventArgs)
If sourceCell IsNot Nothing AndAlso Equals(e.SheetName, sourceCell.Worksheet.Name) Then biFormatPainter.Checked = False
End Sub
how-to-export-cell-range-to-a-datatable/VB/ExportToDataTableExample/Form1.vb#L23
Private Sub barButtonItemRangeToDataTable_ItemClick(ByVal sender As Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
If barCheckItemStopEmptyRow.Checked Then
ExportSelectionStopOnEmptyRow()
If SelectedCustomItem IsNot Nothing Then
barShowLabelsItem.Checked = SelectedCustomItem.Metadata.ShowLabels
barShowLegendItem.Checked = SelectedCustomItem.Metadata.ShowLegend
winforms-rich-edit-implement-ms-office-word-format-painter/VB/DXApplication9/Form1.vb#L47
Private Sub richEditControl_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles richEditControl.MouseUp
If barCheckItem1.Checked Then
ApplyFormatToSelectedText()
See Also
Checked