Interface
ICodeEditor

Interface to interact with the Actipro Syntax Editor.

Definition

Namespace:ArtOfTest.WebAii.Design.CodeGeneration

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public interface ICodeEditor : IUIPanelView

Inherited Members IUIPanelView.HandleCommand(RoutedCommand, ExecutedRoutedEventArgs)IUIPanelView.CanExecute(RoutedCommand, CanExecuteRoutedEventArgs)

Properties

CodeDoc

Get and set the document loaded in the editor.

Declaration

cs-api-definition
object CodeDoc { get; set; }

Property Value

object

ContentUI

Get and set the editor content UI.

Declaration

cs-api-definition
ICodeStepsPanel ContentUI { get; }

Property Value

ICodeStepsPanel

Methods

AttachHandler(TestCodeEvent, RoutedEventHandler)

Attach event handlers.

Declaration

cs-api-definition
void AttachHandler(TestCodeEvent type, RoutedEventHandler routedEventHandler)

Parameters

type

TestCodeEvent

Event type.

routedEventHandler

RoutedEventHandler

Event handler.

Close()

Close the UI panel.

Declaration

cs-api-definition
void Close()

DetachHandler(TestCodeEvent, RoutedEventHandler)

Detach event handlers.

Declaration

cs-api-definition
void DetachHandler(TestCodeEvent type, RoutedEventHandler routedEventHandler)

Parameters

type

TestCodeEvent

Event type.

routedEventHandler

RoutedEventHandler

Event handler.

DisplayCompilationErrors(ParsedCodeStepsCollection, string, string, bool)

Update the UI with compilation errors.

Declaration

cs-api-definition
void DisplayCompilationErrors(ParsedCodeStepsCollection steps, string errorFiles, string allErrors, bool nonStepError)

Parameters

steps

ParsedCodeStepsCollection

The steps collection.

errorFiles

string

The files containing errors in a comma-separated list.

allErrors

string

All errors.

nonStepError

bool

Whether contains errors not related to a particular step.

Focus()

Focus UI panel.

Declaration

cs-api-definition
void Focus()

GoToCaretOffset(int)

Scroll to a given caret offset.

Declaration

cs-api-definition
void GoToCaretOffset(int caretOffset)

Parameters

caretOffset

int

The caret offset to scroll to.

GoToLineAndColumn(int, int)

Scroll to a given line and column.

Declaration

cs-api-definition
void GoToLineAndColumn(int lineNumber, int columnNumber)

Parameters

lineNumber

int

The line number to scroll to.

columnNumber

int

The column number to scroll to.