语言

StyleCollection.Contains(Style) 方法

定义

确定指定样式是否包含在集合中。

public:
 bool Contains(System::Web::UI::WebControls::Style ^ style);
public bool Contains(System.Web.UI.WebControls.Style style);
member this.Contains : System.Web.UI.WebControls.Style -> bool
Public Function Contains (style As Style) As Boolean

参数

style
Style

在 Style 集合中查找的项。

返回

true 如果样式位于集合中,则为否则,为 false.

注解

该方法 Contains 通过使用 Equals 对象上的 Style 方法确定相等性。

适用于

另请参阅