WinHtmlEditor/Common/HtmlEditorEvents.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#region Using directives

using System;

#endregion

namespace WinHtmlEditor
{
    # region Application delegate definitions

    // Define delegate for raising an editor exception
    public delegate void HtmlExceptionEventHandler(object sender, HtmlExceptionEventArgs e);

    // Define delegate for handling navigation events
    public delegate void HtmlNavigationEventHandler(object sender, HtmlNavigationEventArgs e);

    // delegate declarations required for the find and replace dialog
    internal delegate void FindReplaceResetDelegate();
    internal delegate bool FindFirstDelegate(string findText, bool matchWhole, bool matchCase);
    internal delegate bool FindNextDelegate(string findText, bool matchWhole, bool matchCase);
    internal delegate bool FindReplaceOneDelegate(string findText, string replaceText, bool matchWhole, bool matchCase);
    internal delegate int  FindReplaceAllDelegate(string findText, string replaceText, bool matchWhole, bool matchCase);

    #endregion

    #region Navigation Event Arguments

    /// <summary>
    /// On a user initiated navigation create an event with the following EventArgs
    /// User can set the cancel property to cancel the navigation
    /// </summary>
    public class HtmlNavigationEventArgs : EventArgs
    {
        //private variables
        private string _url = string.Empty;
        private bool _cancel = false;

        /// <summary>
        /// Constructor for event args
        /// </summary>
        public HtmlNavigationEventArgs(string url) : base()
        {
            _url = url;

        } //HtmlNavigationEventArgs

        /// <summary>
        /// Property for the Form Url
        /// </summary>
        public string Url
        {
            get
            {
                return _url;
            }

        } //Url

        /// <summary>
        /// Defintion of the cancel property
后面还有 136 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。