CustomDrawObjectEventArgs.ObjectInfo Property

Gets an object providing information on the element being painted.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v20.1.dll

Declaration

public ObjectInfoArgs ObjectInfo { get; }
Public ReadOnly Property ObjectInfo As ObjectInfoArgs

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