Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawObjectEventArgs.ObjectInfo Property

Gets an object providing information on the element being painted.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#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.

See Also