HtmlControlDesigner.Behavior 属性

定义

警告

此 API 现已过时。

获取或设置与设计器关联的 DHTML 行为。Gets or sets the DHTML behavior that is associated with the designer.

public:
 property System::Web::UI::Design::IHtmlControlDesignerBehavior ^ Behavior { System::Web::UI::Design::IHtmlControlDesignerBehavior ^ get(); void set(System::Web::UI::Design::IHtmlControlDesignerBehavior ^ value); };
public System.Web.UI.Design.IHtmlControlDesignerBehavior Behavior { get; set; }
[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
public System.Web.UI.Design.IHtmlControlDesignerBehavior Behavior { get; set; }
member this.Behavior : System.Web.UI.Design.IHtmlControlDesignerBehavior with get, set
Public Property Behavior As IHtmlControlDesignerBehavior

属性值

与设计器关联的 IHtmlControlDesignerBehaviorAn IHtmlControlDesignerBehavior that is associated with the designer.

属性

注解

备注

Behavior 属性已过时。The Behavior property is obsolete. 使用 Tag 属性的 SetAttributeGetAttribute 方法可将属性映射到样式。Use the SetAttribute and GetAttribute methods on the Tag property to map properties to styles. 使用 ContainerControlDesigner 类的 GetDesignTimeCssAttributes 方法可在设计时设置控件的样式。Use the GetDesignTimeCssAttributes method on the ContainerControlDesigner class to set styles for the control at design time.

适用于

另请参阅