public EditorExtraData(int from, int to, EditorExtraDataType type, object data) { From = from; To = to; Type = type; Data = data; }
public static Scintilla AddData(this Scintilla editor, int from, int to, EditorExtraDataType type, object data) { var extraData = (IList <EditorExtraData>)editor.Tag; if (extraData == null) { editor.Tag = extraData = new List <EditorExtraData>(); } extraData.Add(new EditorExtraData(from, to, type, data)); return(editor); }