Represents a customizable read-only block of text which can be displayed below each line in a Scintilla control.
示例#1
0
        /// <summary>
        ///     Determines whether the specified <see cref="Annotation" /> is equal to the current <see cref="Annotation" />.
        /// </summary>
        /// <param name="a">The annotation to compare with the current annotation.</param>
        /// <returns>
        ///     true if the specified <see cref="Annotation" /> is equal to the
        ///     current <see cref="Annotation" />; otherwise, false.
        /// </returns>
        public virtual bool Equals(Annotation a)
        {
            // Per Microsoft's recommendations we have an Equals for
            // our specific type "to enhance performance".

            if (a != null)
            {
                // Just remember to keep in sync with standard Equals above
                if (a._scintilla == this._scintilla && a._lineIndex == this._lineIndex)
                    return true;
            }

            return false;
        }