IHtmlControlDesignerBehavior.SetStyleAttribute 方法

定义

将指定的样式特性设置为指定的对象。

public:
 void SetStyleAttribute(System::String ^ attribute, bool designTimeOnly, System::Object ^ value, bool ignoreCase);
public void SetStyleAttribute(string attribute, bool designTimeOnly, object value, bool ignoreCase);
abstract member SetStyleAttribute : string * bool * obj * bool -> unit
Public Sub SetStyleAttribute (attribute As String, designTimeOnly As Boolean, value As Object, ignoreCase As Boolean)

参数

attribute
String

要设置的属性。

designTimeOnly
Boolean

true 如果特性仅在设计时处于活动状态,否则,为 false.

value
Object

要设置其属性的对象。

ignoreCase
Boolean

true 如果属性语法不区分大小写,否则,为 false.

注解

注释

该方法 SetStyleAttribute 已过时。 将AddDesignTimeCssAttributesContainerControlDesigner类上的方法用于等效的控件设计器功能。

适用于

另请参阅