ControlAdapter.ItemWeight 属性

定义

访问控件中某一项的大致权重。Accesses the approximate weight of a single item in the control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual property int ItemWeight { int get(); };
public virtual int ItemWeight { get; }
member this.ItemWeight : int
Public Overridable ReadOnly Property ItemWeight As Integer

属性值

Int32

控件中单个项的近似权重。The approximate weight of a single item in the control.

实现

注解

值-1 指示必须使用元素的默认权重。A value of -1 indicates that the default weight for the element must be used. 继承类必须重写此属性。The inheriting class must override this property. 有关重写此属性的详细信息,请参阅 分页For further information about overriding this property, see Pagination.

适用于