HtmlTitle.AddParsedSubObject(Object) 方法

定义

通知 HtmlTitle 控件已分析了一个 XML 或 HTML 元素,并将该元素添加到该控件的 ControlCollection 集合中。Notifies the HtmlTitle control that an XML or HTML element was parsed and adds that element to the ControlCollection collection of the control.

protected:
 override void AddParsedSubObject(System::Object ^ obj);
protected override void AddParsedSubObject (object obj);
override this.AddParsedSubObject : obj -> unit
Protected Overrides Sub AddParsedSubObject (obj As Object)

参数

obj
Object

一个 Object,表示已经过分析的元素。An Object that represents the parsed element.

注解

如果添加到控件的元素 HtmlTitleLiteralControl 控件,则该方法会 AddParsedSubObject Text 使用文本字符串的值设置属性; 否则,将 AddParsedSubObject 调用基方法。If the element added to the HtmlTitle control is a LiteralControl control, then the AddParsedSubObject method sets the Text property with the value of the literal string; otherwise, the base AddParsedSubObject method is called. AddParsedSubObject方法主要由控件开发人员用来扩展控件的功能 HtmlTitleThe AddParsedSubObject method is used primarily by control developers extending the functionality of the HtmlTitle control.

适用于

另请参阅