Method InsertBlock
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
InsertBlock(string, bool)
When implemented by a class, inserts the given string at the specified location.
bool InsertBlock(string text, bool withChange = false)
Parameters
text
stringString to insert.
withChange
boolIndicates if the change needs to be translated to the parser
Returns
- bool
True if the method succeed; otherwise false.
InsertBlock(string[], bool)
When implemented by a class, inserts the given string array at the specified location.
bool InsertBlock(string[] strings, bool withChange = false)
Parameters
strings
string[]String array to insert.
withChange
boolIndicates if the change needs to be translated to the parser
Returns
- bool
True if the method succeed; otherwise false.
InsertBlock(ITextStrings, bool)
When implemented by a class, inserts the given string collection at the specified location.
bool InsertBlock(ITextStrings strings, bool withChange = false)
Parameters
strings
ITextStringsCollection of strings to insert.
withChange
boolIndicates if the change needs to be translated to the parser
Returns
- bool
True if the method succeed; otherwise false.
InsertBlock(string[], bool, bool)
When implemented by a class, inserts the given string array at the specified location.
bool InsertBlock(string[] strings, bool select, bool withChange = false)
Parameters
strings
string[]String array to insert.
select
boolSpecifies whether inserted block should be selected.
withChange
boolIndicates if the change needs to be translated to the parser
Returns
- bool
True if the method succeed; otherwise false.