Class CustomEvent
Tên không gian: Aspose.Html.Dom.Events Tổng hợp: Aspose.HTML.dll (25.4.0)
Các sự kiện sử dụng giao diện CustomEvent có thể được sử dụng để mang dữ liệu tùy chỉnh.
[ComVisible(true)]
[DOMObject]
[DOMName("CustomEvent")]
public class CustomEvent : Event, INotifyPropertyChanged
Inheritance
object ← DOMObject ← Event ← CustomEvent
Implements
Thành viên thừa kế
Event.NonePhase , Event.CapturingPhase , Event.AtTargetPhase , Event.BubblingPhase , Event.InitEvent(string, bool, bool) , Event.PreventDefault() , Event.StopPropagation() , Event.StopImmediatePropagation() , Event.Bubbles , Event.Cancelable , Event.CurrentTarget , Event.EventPhase , Event.Target , Event.TimeStamp , Event.Type , Event.DefaultPrevented , Event.IsTrusted , DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
CustomEvent(String)
Bắt đầu một trường hợp mới của lớp Aspose.Html.Dom.Events.CustomEvent.
[DOMConstructor]
public CustomEvent(string type)
Parameters
type
string
Loại sự kiện
CustomEvent(string, IDictionary<string, đối tượng=» » »)
Bắt đầu một trường hợp mới của lớp Aspose.Html.Dom.Events.CustomEvent.
[DOMConstructor]
public CustomEvent(string type, IDictionary<string, object=""> eventInitDict)
Parameters
type
string
Loại sự kiện
eventInitDict
IDictionary
<
string
, object
>
Sự kiện bắt đầu từ điển.
Properties
Detail
Nhận dữ liệu tùy chỉnh.
[DOMName("detail")]
public object Detail { get; }
Giá trị bất động sản
Methods
InitCustomEvent(Loại: Bool, Bool, Object)
/// Phương pháp Aspose.Html.Dom.Events.Event.InitEvent (System.String,System.Boolean,System.Boolean) được sử dụng để bắt đầu giá trị của một Aspose.Html.Dom.Events.Event được tạo ra thông qua giao diện Aspose.Html.Dom.Events.IDocumentEvent.
[DOMName("initCustomEvent")]
public void InitCustomEvent(string type, bool bubbles, bool cancelable, object detail)
Parameters
type
string
Loại sự kiện
bubbles
bool
Nếu được đặt vào ’truyền’ [bubbles].
cancelable
bool
Nếu được đặt vào ’truyền’ [cấm dứt].
detail
object
Dữ liệu tiêu chuẩn
Remarks
Phương pháp này chỉ có thể được gọi trước khi Sự kiện đã được gửi qua phương pháp Aspose.Html.Dom.Events.IEventTarget.DispatchEvent(Aspose.Html.Dom.Events.Event),Tuy nhiên, nó có thể được gọi nhiều lần trong giai đoạn đó nếu cần thiết.Nếu được gọi nhiều lần, lời kêu gọi cuối cùng sẽ được ưu tiên.Nếu chỉ có các giá trị được xác định trong phương pháp initEvent được thay đổi, tất cả các thuộc tính khác sẽ không thay đổi.</string,></string,>