SharpVectors.Dom.Document.CreateEvent C# (CSharp) Method

CreateEvent() public method

public CreateEvent ( string eventType ) : IEvent
eventType string
return IEvent
        public virtual IEvent CreateEvent(
			string eventType)
        {
            switch (eventType)
            {
                case "Event":
                case "Events":
                case "HTMLEvents":
                    return new Event();
                case "MutationEvent":
                case "MutationEvents":
                    return new MutationEvent();
                case "UIEvent":
                case "UIEvents":
                    return new UiEvent();
                case "MouseEvent":
                case "MouseEvents":
                    return new MouseEvent();
                default:
                    throw new DomException(
                        DomExceptionType.NotSupportedErr,
                        "Event type \"" + eventType + "\" not suppoted");
            }
        }