Back to Devexpress

HtmlContentControl.ActiveEditor Property

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentcontrol-8e2ac3fc.md

latest4.2 KB
Original Source

HtmlContentControl.ActiveEditor Property

Gets the active in-place editor defined in HTML markup by an ‘input’ tag with an embedded Repository Item.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public BaseEdit ActiveEditor { get; }
vb
<Browsable(False)>
Public ReadOnly Property ActiveEditor As BaseEdit

Property Value

TypeDescription
BaseEdit

The child active editor.

|

Remarks

HtmlContentControl allows you to use ‘input’ tags to embed in-place editors (Repository Items) into the UI.

When an in-place editor is not focused, it is rendered in browse mode. In this case, the HtmlContentControl displays a placeholder (based on the Repository Item’s settings) that emulates a non-focused editor; the ActiveEditor property returns null.

When an in-place editor is about to be activated (for example, a user clicks the placeholder), the HtmlContentControl creates the editor object (a BaseEdit descendant) based on the Repository Item’s settings, and displays the editor in lieu of the placeholder. The ActiveEditor property allows you to return this BaseEdit object.

The editor is destroyed when it loses focus or a user presses ENTER or ESC. In this case, the ActiveEditor property again returns null.

See the following topic for more information: Editor Architecture: Repositories and Repository Items.

Properties

  • HtmlContentControl.ActiveEditor

Events

Methods

See Also

HtmlContentControl Class

HtmlContentControl Members

DevExpress.XtraEditors Namespace