Method InsertBlock
InsertBlock(string, bool)
Inserts the given string at the specified location.
public virtual bool InsertBlock(string text, bool withChange = false)
Parameters
textstringString to insert.
withChangeboolIndicates 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
stringsstring[]String array to insert.
withChangeboolIndicates 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
stringsITextStringsCollection of strings to insert.
withChangeboolIndicates 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
stringsstring[]String array to insert.
selectboolSpecifies whether inserted block should be selected.
withChangeboolIndicates if the change needs to be translated to the parser.
Returns
- bool
True if the method succeed; otherwise false.