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

CustomDrawObjectEventArgs.Handled Property

Gets or sets a value specifying whether the control must perform default painting after an event handler has been executed.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v18.2.dll

Declaration

public virtual bool Handled { get; set; }

Property Value

Type Description
Boolean

true if the control doesn’t perform default object painting after an event handler has been executed; otherwise false.

Remarks

Events, for which the CustomDrawObjectEventArgs class provides data, fire before a corresponding object is painted. If an event handler sets the Handled property to true, default object painting is not performed. Otherwise the control will paint the object using its default after the handler has been executed.

This property can be used, for instance, to apply custom drawing only to those objects, which satisfy some specific conditions.

The following code snippets (auto-collected from DevExpress Examples) contain references 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