RepositoryItemHyperLinkEdit.LinkColorUseParentAppearance Property

Gets or sets whether the link text color is specified by parent appearance settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(false)]
public virtual bool LinkColorUseParentAppearance { get; set; }
<DXCategory("Appearance")>
<DefaultValue(False)>
Public Overridable Property LinkColorUseParentAppearance As Boolean

Property Value

Type Default Description
Boolean

false

true, if the link text color is specified by parent appearance settings; otherwise, false.

Remarks

By default, the HyperLinkEdit's text is painted according to the RepositoryItemHyperLinkEdit.LinkColor property or the AppearanceObject.ForeColor property of the RepositoryItem.Appearance object. If these properties are not set, the default color is used.

A HyperLinkEdit can be embedded in a container control (GridControl, TreeList, etc.). In this case, you may want to paint text in an in-place HyperLinkEdit control using the appearance settings provided by the parent container control. To do this, set the LinkColorUseParentAppearance property to true. The RepositoryItemHyperLinkEdit.LinkColor and RepositoryItemHyperLinkEdit.Appearance.ForeColor properties will be ignored.

See Also