Class DocumentType
Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.1.0)
DocumentType cung cấp một giao diện để danh sách các thực thể được định nghĩa cho tài liệu
[ComVisible(true)]
[DOMName("DocumentType")]
[DOMObject]
public class DocumentType : Node, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver
Kế thừa
object ← DOMObject ← EventTarget ← Node ← DocumentType
Triển khai
INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver
Thành viên kế thừa
Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE, Node.ENTITY_NODE, Node.PROCESSING_INSTRUCTION_NODE, Node.COMMENT_NODE, Node.DOCUMENT_NODE, Node.DOCUMENT_TYPE_NODE, Node.DOCUMENT_FRAGMENT_NODE, Node.NOTATION_NODE, Node.HasChildNodes(), Node.Normalize(), Node.CloneNode(), Node.CloneNode(bool), Node.IsEqualNode(Node), Node.IsSameNode(Node), Node.LookupPrefix(string), Node.LookupNamespaceURI(string), Node.IsDefaultNamespace(string), Node.InsertBefore(Node, Node), Node.ReplaceChild(Node, Node), Node.RemoveChild(Node), Node.AppendChild(Node), Node.Dispose(bool), Node.ToString(), Node.NodeType, Node.LocalName, Node.NamespaceURI, Node.Prefix, Node.NodeName, Node.BaseURI, Node.OwnerDocument, Node.ParentNode, Node.ParentElement, Node.ChildNodes, Node.FirstChild, Node.LastChild, Node.PreviousSibling, Node.NextSibling, Node.NodeValue, Node.TextContent, EventTarget.AddEventListener(string, DOMEventHandler, bool), EventTarget.AddEventListener(string, IEventListener), EventTarget.AddEventListener(string, IEventListener, bool), EventTarget.RemoveEventListener(string, DOMEventHandler, bool), EventTarget.RemoveEventListener(string, IEventListener), EventTarget.RemoveEventListener(string, IEventListener, bool), EventTarget.DispatchEvent(Event), EventTarget.Dispose(), EventTarget.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Các hàm khởi tạo
DocumentType(string, string, string, string, Document)
Khởi tạo một thể hiện mới của lớp Aspose.Html.Dom.DocumentType.
public DocumentType(string name, string publicId, string systemId, string internalSubset, Document doc)
Tham số
name
string
Tên thực thể.
publicId
string
Id công khai.
systemId
string
Id hệ thống.
internalSubset
string
Tập con nội bộ.
doc
Document
Tài liệu.
Thuộc tính
InternalSubset
Tập con nội bộ dưới dạng chuỗi, hoặc null nếu không có.
[DOMName("internalSubset")]
public string InternalSubset { get; }
Giá trị thuộc tính
Name
Tên của DTD; tức là, tên ngay sau từ khóa DOCTYPE.
[DOMName("name")]
public string Name { get; }
Giá trị thuộc tính
NodeName
Tên của nút này, tùy thuộc vào loại của nó.
public override string NodeName { get; }
Giá trị thuộc tính
NodeType
Mã đại diện cho loại của đối tượng cơ sở.
public override ushort NodeType { get; }
Giá trị thuộc tính
PublicId
Định danh công khai của tập con bên ngoài.
[DOMName("publicId")]
public string PublicId { get; }
Giá trị thuộc tính
SystemId
Định danh hệ thống của tập con bên ngoài. Điều này có thể là một URI tuyệt đối hoặc không.
[DOMName("systemId")]
public string SystemId { get; }
Giá trị thuộc tính
Các phương thức
ToString()
Trả về một System.String đại diện cho thể hiện này.
public override string ToString()
Trả về
Một System.String đại diện cho thể hiện này.