Table of Contents

Method InsertBlock

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

InsertBlock(string, bool)

Inserts the given string at the specified location.

public virtual bool InsertBlock(string text, bool withChange = false)

Parameters

text string

String to insert.

withChange bool

Indicates if the change needs to be translated to the parser

Returns

bool

True if the method succeed; otherwise false.

InsertBlock(string[], bool)

Inserts the given string array at the specified location.

public virtual bool InsertBlock(string[] strings, bool withChange = false)

Parameters

strings string[]

String array to insert.

withChange bool

Indicates if the change needs to be translated to the parser

Returns

bool

True if the method succeed; otherwise false.

InsertBlock(ITextStrings, bool)

Inserts the given string collection at the specified location.

public virtual bool InsertBlock(ITextStrings strings, bool withChange = false)

Parameters

strings ITextStrings

Collection of strings to insert.

withChange bool

Indicates if the change needs to be translated to the parser

Returns

bool

True if the method succeed; otherwise false.

InsertBlock(string[], bool, bool)

Inserts the given string array at the specified location.

public virtual bool InsertBlock(string[] strings, bool select, bool withChange = false)

Parameters

strings string[]

String array to insert.

select bool

Specifies whether inserted block should be selected.

withChange bool

Indicates if the change needs to be translated to the parser

Returns

bool

True if the method succeed; otherwise false.