DesignerAutoFormatCollection.Contains(DesignerAutoFormat) 方法
定义
确定指定格式是否包含在集合中。Determines whether the specified format is contained within the collection.
public:
bool Contains(System::Web::UI::Design::DesignerAutoFormat ^ format);
public bool Contains (System.Web.UI.Design.DesignerAutoFormat format);
member this.Contains : System.Web.UI.Design.DesignerAutoFormat -> bool
Public Function Contains (format As DesignerAutoFormat) As Boolean
参数
- format
- DesignerAutoFormat
DesignerAutoFormat 的一个实例。An instance of DesignerAutoFormat.
返回
如果集合中存在指定的格式,则为 true;否则为 false。true, if the specified format is in the collection; otherwise, false.
注解
Contains方法通过 Equals 对要比较的对象使用方法来确定相等性 DesignerAutoFormat 。The Contains method determines equality by using the Equals method on the DesignerAutoFormat objects that are being compared.