AppearanceObject.ParentAppearance Property

Gets the parent appearance object.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.2.dll

Declaration

[Browsable(false)]
public AppearanceObject ParentAppearance { get; }
<Browsable(False)>
Public ReadOnly Property ParentAppearance As AppearanceObject

Property Value

Type Description
AppearanceObject

An AppearanceObject object representing the parent appearance object. null (Nothing in Visual Basic) if no parent appearance object is assigned.

Remarks

The DevExpress Ribbon, Menu and Docking Library allows you to use appearance inheritance. This implies each appearance object can have a parent specified by the ParentAppearance property. The settings that are to be inherited from the parent are specified by the options listed in the AppearanceObject.Options property. You should disable options that correspond to appearance settings that are going to be inherited from the parent. For example, if you need to use the parent's background color, set the child appearance object's AppearanceOptions.UseBackColor property to false.

Note that the ParentAppearance property is read only. The parent can only be specified when creating a new AppearanceObject instance.

See Also