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

CustomDrawObjectEventArgs.ObjectInfo Property

Gets an object providing information on the element being painted.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v19.1.dll

Declaration

public ObjectInfoArgs ObjectInfo { get; }

Property Value

Type Description
DevExpress.Utils.Drawing.ObjectInfoArgs

A DevExpress.Utils.Drawing.ObjectInfoArgs descendant providing the element’s specific information.

Remarks

When custom painting NavBar groups’ headers, the ObjectInfo property refers to a DevExpress.XtraNavBar.ViewInfo.NavGroupInfoArgs object. For instance, you can use this property to get the bounds of the group’s caption, image and expand button.

When custom painting links, the ObjectInfo property represents a DevExpress.XtraNavBar.ViewInfo.NavLinkInfoArgs object. It allows you for instance, to get the bounds of the link’s image and caption.

Read the ObjectInfoArgs.State property to determine whether the object being painted is currently pressed, disabled, hot-tracked, etc.

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