HtmlControlDesigner.Behavior 属性
定义
注意
The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202
获取或设置与设计器关联的 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
[<System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Behavior : System.Web.UI.Design.IHtmlControlDesignerBehavior with get, set
Public Property Behavior As IHtmlControlDesignerBehavior
属性值
与设计器关联的 IHtmlControlDesignerBehavior。An IHtmlControlDesignerBehavior that is associated with the designer.
- 属性
注解
备注
Behavior 属性已过时。The Behavior property is obsolete. 使用 SetAttribute GetAttribute 属性上的和方法 Tag 可将属性映射到样式。Use the SetAttribute and GetAttribute methods on the Tag property to map properties to styles. 使用 GetDesignTimeCssAttributes 类的方法在 ContainerControlDesigner 设计时设置控件的样式。Use the GetDesignTimeCssAttributes method on the ContainerControlDesigner class to set styles for the control at design time.