Back to Devexpress

CustomDrawObjectEventArgs.Appearance Property

windowsforms-devexpress-dot-xtranavbar-dot-viewinfo-dot-customdrawobjecteventargs.md

latest2.2 KB
Original Source

CustomDrawObjectEventArgs.Appearance Property

Gets the painted element’s appearance settings.

Namespace : DevExpress.XtraNavBar.ViewInfo

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
public virtual AppearanceObject Appearance { get; }
vb
Public Overridable ReadOnly Property Appearance As AppearanceObject

Property Value

TypeDescription
AppearanceObject

A AppearanceObject object which provides the painted element’s appearance settings.

|

Remarks

The Appearance property can be used in a number of ways:

  • By reading the Appearance property’s attributes so as to custom paint an element using the default settings. In this case, you should set the CustomDrawObjectEventArgs.Handled property to true to stop the default painting mechanism from painting over your custom paintings.
  • Change specific attributes of the Appearance property and leave the CustomDrawObjectEventArgs.Handled property set to false. This forces the NavBar to paint the element using the default painting mechanism but with the modified appearance settings.

For more information on appearances, see the Appearances document.

See Also

CustomDrawObjectEventArgs Class

CustomDrawObjectEventArgs Members

DevExpress.XtraNavBar.ViewInfo Namespace