Skip to main content
Bar

BarItemCustomDrawEventArgs.Handled Property

Gets or sets whether or not this item link is painted manually.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public bool Handled { get; set; }

Property Value

Type Description
Boolean

true if this item link is painted manually; otherwise, false.

Remarks

If you set the Handled property to true, the related link will paint none of its default elements (caption, icon, drop-down arrow, etc.) unless you manually call desired Draw… methods before (BarItemCustomDrawEventArgs.DrawText, BarItemCustomDrawEventArgs.DrawGlyph, BarItemCustomDrawEventArgs.DrawArrow and others). See the BarManager.CustomDrawItem event to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Handled 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.

See Also