Skip to main content

CustomDrawObjectEventArgs.ObjectInfo Property

Gets an object providing information on the element being painted.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

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