Method InsertBlock
InsertBlock(string, bool)
Inserts the given string at the specified location.
public virtual 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)
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
boolIndicates 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
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)
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
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.