AGS.Editor.ScintillaWrapper.SetText C# (CSharp) Method

SetText() public method

public SetText ( string newText, bool clearModified ) : void
newText string
clearModified bool
return void
        public void SetText(string newText, bool clearModified)
        {
            bool shouldBeReadOnly = this.scintillaControl1.IsReadOnly;
            this.scintillaControl1.IsReadOnly = false;

            this.scintillaControl1.SetText(newText);
            this.scintillaControl1.ConvertEOLs(EndOfLine.Crlf);
            if (clearModified)
            {
                this.scintillaControl1.SetSavePoint();
                this.scintillaControl1.EmptyUndoBuffer();
            }

            this.scintillaControl1.IsReadOnly = shouldBeReadOnly;
        }

Same methods

ScintillaWrapper::SetText ( string newText ) : void
ScintillaWrapper