語言

IControlDesignerTag 介面

定義

提供介面,方便設計時存取與控制設計器相關聯的控制項的 HTML 標記。

public interface class IControlDesignerTag
public interface IControlDesignerTag
type IControlDesignerTag = interface
Public Interface IControlDesignerTag

備註

IControlDesignerTag介面是控制設計者與設計主機之間的合約,讓設計主機能在設計時操作 HTML 標籤。

屬性

名稱 Description
IsDirty

會獲得一個值,表示某個屬性或標籤內容是否改變。

方法

名稱 Description
GetAttribute(String)

取得標籤上已識別屬性的值。

GetContent()

取得標籤內容的 HTML 標記。

GetOuterContent()

取得控制項的完整 HTML 標記,包括外部標籤。

RemoveAttribute(String)

刪除標籤中指定的屬性。

SetAttribute(String, String)

設定指定屬性的值,必要時建立該屬性。

SetContent(String)

設定標籤內容的 HTML 標記。

SetDirty(Boolean)

設定 IsDirty 標籤的屬性。

適用於

另請參閱