コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarginClickEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="modifiers">The modifier keys that where held down at the time of the margin click.</param>
 /// <param name="bytePosition">The zero-based byte position within the document where the line adjacent to the clicked margin starts.</param>
 /// <param name="margin">The zero-based index of the clicked margin.</param>
 public MarginClickEventArgs(ZeroitCodeExplorer Scintilla, Keys modifiers, int bytePosition, int margin)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
     Modifiers         = modifiers;
     Margin            = margin;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InsertCheckEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="bytePosition">The zero-based byte position within the document where text is being inserted.</param>
 /// <param name="byteLength">The length in bytes of the inserted text.</param>
 /// <param name="text">A pointer to the text being inserted.</param>
 public InsertCheckEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition, int byteLength, IntPtr text)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
     this.byteLength   = byteLength;
     this.textPtr      = text;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoCSelectionEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="bytePosition">The zero-based byte position within the document of the word being completed.</param>
 /// <param name="text">A pointer to the selected autocompletion text.</param>
 /// <param name="ch">The character that caused the completion.</param>
 /// <param name="listCompletionMethod">A value indicating the way in which the completion occurred.</param>
 public AutoCSelectionEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition, IntPtr text, int ch, ListCompletionMethod listCompletionMethod)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
     this.textPtr      = text;
     Char = ch;
     ListCompletionMethod = listCompletionMethod;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="BeforeModificationEventArgs" /> class.
        /// </summary>
        /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
        /// <param name="source">The source of the modification.</param>
        /// <param name="bytePosition">The zero-based byte position within the document where text is being modified.</param>
        /// <param name="byteLength">The length in bytes of the text being modified.</param>
        /// <param name="text">A pointer to the text being inserted.</param>
        public BeforeModificationEventArgs(ZeroitCodeExplorer Scintilla, ModificationSource source, int bytePosition, int byteLength, IntPtr text)
        {
            this.Scintilla    = Scintilla;
            this.bytePosition = bytePosition;
            this.byteLength   = byteLength;
            this.textPtr      = text;

            Source = source;
        }
コード例 #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ModificationEventArgs" /> class.
        /// </summary>
        /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
        /// <param name="source">The source of the modification.</param>
        /// <param name="bytePosition">The zero-based byte position within the document where text was modified.</param>
        /// <param name="byteLength">The length in bytes of the inserted or deleted text.</param>
        /// <param name="text">>A pointer to the text inserted or deleted.</param>
        /// <param name="linesAdded">The number of lines added or removed (delta).</param>
        public ModificationEventArgs(ZeroitCodeExplorer Scintilla, ModificationSource source, int bytePosition, int byteLength, IntPtr text, int linesAdded) : base(Scintilla, source, bytePosition, byteLength, text)
        {
            this.Scintilla    = Scintilla;
            this.bytePosition = bytePosition;
            this.byteLength   = byteLength;
            this.textPtr      = text;

            LinesAdded = linesAdded;
        }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the ScintillaReader class that reads a subsection from the specified Scintilla control.
 /// </summary>
 /// <param name="Scintilla">The Scintilla control from which to read.</param>
 /// <param name="start">The index of the first character to read.</param>
 /// <param name="end">The index just past the last character to read.</param>
 /// <param name="bufferSize">The number of characters to buffer at a time.</param>
 public ScintillaReader(ZeroitCodeExplorer Scintilla, int start, int end, int bufferSize)
 {
     _scintilla  = Scintilla;
     _bufferSize = bufferSize > 0 ? bufferSize : DefaultBufferSize;
     _nextData   = start;
     _lastData   = end;
     // ensure start state is valid
     BufferNextRegion();
 }
コード例 #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DoubleClickEventArgs" /> class.
        /// </summary>
        /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
        /// <param name="modifiers">The modifier keys that where held down at the time of the double click.</param>
        /// <param name="bytePosition">The zero-based byte position of the double clicked text.</param>
        /// <param name="line">The zero-based line index of the double clicked text.</param>
        public DoubleClickEventArgs(ZeroitCodeExplorer Scintilla, Keys modifiers, int bytePosition, int line)
        {
            this.Scintilla    = Scintilla;
            this.bytePosition = bytePosition;
            Modifiers         = modifiers;
            Line = line;

            if (bytePosition == -1)
            {
                position = -1;
            }
        }
コード例 #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DwellEventArgs" /> class.
        /// </summary>
        /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
        /// <param name="bytePosition">The zero-based byte position within the document where the mouse pointer was lingering.</param>
        /// <param name="x">The x-coordinate of the mouse pointer relative to the <see cref="Scintilla" /> control.</param>
        /// <param name="y">The y-coordinate of the mouse pointer relative to the <see cref="Scintilla" /> control.</param>
        public DwellEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition, int x, int y)
        {
            this.Scintilla    = Scintilla;
            this.bytePosition = bytePosition;
            X = x;
            Y = y;

            // The position is not over text
            if (bytePosition < 0)
            {
                position = bytePosition;
            }
        }
コード例 #9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LineCollection" /> class.
        /// </summary>
        /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this collection.</param>
        public LineCollection(ZeroitCodeExplorer Scintilla)
        {
            this.Scintilla = Scintilla;
            this.Scintilla.SCNotification += scintilla_SCNotification;

            this.perLineData = new GapBuffer <PerLine>();
            this.perLineData.Add(new PerLine {
                Start = 0
            });
            this.perLineData.Add(new PerLine {
                Start = 0
            });                                              // Terminal
        }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the ScintillaReader class that reads all text from the specified Scintilla control.
 /// </summary>
 /// <param name="Scintilla">The Scintilla control from which to read.</param>
 public ScintillaReader(ZeroitCodeExplorer Scintilla)
     : this(Scintilla, 0, Scintilla.TextLength)
 {
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndicatorClickEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="modifiers">The modifier keys that where held down at the time of the click.</param>
 /// <param name="bytePosition">The zero-based byte position of the clicked text.</param>
 public IndicatorClickEventArgs(ZeroitCodeExplorer Scintilla, Keys modifiers, int bytePosition) : base(Scintilla, bytePosition)
 {
     Modifiers = modifiers;
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Indicator" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this indicator.</param>
 /// <param name="index">The index of this style within the <see cref="IndicatorCollection" /> that created it.</param>
 public Indicator(ZeroitCodeExplorer Scintilla, int index)
 {
     this.Scintilla = Scintilla;
     Index          = index;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndicatorCollection" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this collection.</param>
 public IndicatorCollection(ZeroitCodeExplorer Scintilla)
 {
     this.Scintilla = Scintilla;
 }
コード例 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Margin" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this margin.</param>
 /// <param name="index">The index of this margin within the <see cref="MarginCollection" /> that created it.</param>
 public Margin(ZeroitCodeExplorer Scintilla, int index)
 {
     this.Scintilla = Scintilla;
     Index          = index;
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SelectionCollection" /> class.
 /// </summary>
 /// <param name="Scintilla"></param>
 public SelectionCollection(ZeroitCodeExplorer Scintilla)
 {
     this.Scintilla = Scintilla;
 }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NeedShownEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="bytePosition">The zero-based byte position within the document where text needs to be shown.</param>
 /// <param name="byteLength">The length in bytes of the text that needs to be shown.</param>
 public NeedShownEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition, int byteLength)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
     this.byteLength   = byteLength;
 }
コード例 #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Selection" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this selection.</param>
 /// <param name="index">The index of this selection within the <see cref="SelectionCollection" /> that created it.</param>
 public Selection(ZeroitCodeExplorer Scintilla, int index)
 {
     this.Scintilla = Scintilla;
     Index          = index;
 }
コード例 #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkerCollection" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that created this collection.</param>
 public MarkerCollection(ZeroitCodeExplorer Scintilla)
 {
     this.Scintilla = Scintilla;
 }
コード例 #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndicatorReleaseEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="bytePosition">The zero-based byte position of the clicked text.</param>
 public IndicatorReleaseEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StyleNeededEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="bytePosition">The zero-based byte position within the document to stop styling.</param>
 public StyleNeededEventArgs(ZeroitCodeExplorer Scintilla, int bytePosition)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
 }
コード例 #21
0
 /// <summary>
 /// Initializes a new instance of the ScintillaReader class that reads all text from the specified Scintilla control.
 /// </summary>
 /// <param name="Scintilla">The Scintilla control from which to read.</param>
 /// <param name="bufferSize">The number of characters to buffer at a time.</param>
 public ScintillaReader(ZeroitCodeExplorer Scintilla, int bufferSize)
     : this(Scintilla, 0, Scintilla.TextLength, bufferSize)
 {
 }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the ScintillaReader class that reads a subsection from the specified Scintilla control.
 /// </summary>
 /// <param name="Scintilla">The Scintilla control from which to read.</param>
 /// <param name="start">The index of the first character to read.</param>
 /// <param name="end">The index just past the last character to read.</param>
 public ScintillaReader(ZeroitCodeExplorer Scintilla, int start, int end)
     : this(Scintilla, start, end, DefaultBufferSize)
 {
 }
コード例 #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotspotClickEventArgs" /> class.
 /// </summary>
 /// <param name="Scintilla">The <see cref="Scintilla" /> control that generated this event.</param>
 /// <param name="modifiers">The modifier keys that where held down at the time of the click.</param>
 /// <param name="bytePosition">The zero-based byte position of the clicked text.</param>
 public HotspotClickEventArgs(ZeroitCodeExplorer Scintilla, Keys modifiers, int bytePosition)
 {
     this.Scintilla    = Scintilla;
     this.bytePosition = bytePosition;
     Modifiers         = modifiers;
 }