# AceEditor

Namespace: **Wisej.Web.Ext.AceEditor**

Assembly: **Wisej.Web.Ext.AceEditor** (3.2.0.0)

* [Control](https://docs.wisej.com/api?q=wisej.web.control)
  * [Widget](https://docs.wisej.com/api?q=wisej.web.widget)
    * [AceEditor](https://docs.wisej.com/extensions/extensions/aceeditor/api/wisej.web.ext.aceeditor.aceeditor)

Integrates the AceEditor (<https://ace.c9.io/>) widget.

{% tabs %}
{% tab title="C#" %}

```csharp
public class AceEditor : Widget
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class AceEditor
    Inherits Widget
```

{% endtab %}
{% endtabs %}

Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate.

## Constructors

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)AceEditor()

Initializes a new instance of [AceEditor](https://docs.wisej.com/extensions/extensions/aceeditor/api/wisej.web.ext.aceeditor.aceeditor).

## Properties

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)AutoUpdateDelay

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Sets the amount of in time in milliseconds to wait before updating the server that the content of the editor has changed while the user is typing. A value of 0 disables it. (Default: `1000`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)DisplayIndentGuides

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Shows or hides the indent guides. (Default: `True`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)FontSize

[Nullable\<Single>](https://docs.microsoft.com/en-us/dotnet/api/system.nullable): Returns or sets the FontSize. (Default: `null`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)InitScript

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Overridden to create our initialization script.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Language

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns or sets the language. (Default: `""`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Options

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object): Returns or sets the options to use for this instance of the AceEditor.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Packages

[List\<Package>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list): Overridden to return our list of script resources.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)PrintMarginColumn

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the print margin column position. (Default: `80`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)ReadOnly

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): If readOnly is true, then the editor is set to read-only mode, and none of the content can change. (Default: `False`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)ShowGutter

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Shows or hides the gutter. (Default: `True`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)ShowLineNumbers

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Shows or hides the line numbers in the gutter. (Default: `True`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)ShowPrintMargin

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Shows or hides the print margin. (Default: `True`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Text

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns or sets the text displayed in the editor. (Default: `""`)

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Theme

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns or sets the theme. (Default: `""`)

## Methods

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Redo()

Performs a redo operation on the document, reimplementing the last change.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Undo()

Performs an undo operation on the document, reverting the last change.
