TopBottomNSortField 类
使您可以获取和设置 TopN 和 BottomN 排序字段的选项。
有关该类型所有成员的列表,参见 TopBottomNSortField 成员。
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.SortField
TopBottomNSortField
[Visual Basic]
Public Class TopBottomNSortField Inherits SortField Implements IDisposable
[C#]
public class TopBottomNSortField : SortField, IDisposable
备注
通过 SortFields 集合的 Item 属性,按索引检索 SortField 对象,并将 SortField 对象转换为 TopBottomNSortField 对象。
示例
下面示例返回 TopBottomNSortField 对象。
[VJ#] private TopBottomNSortField getTopBottomNSortField (int sortFieldIndex) { TopBottomNSortField topBottomNSortField = null; try { topBottomNSortField = (TopBottomNSortField)Report.get_DataDefinition() .get_SortFields().get_Item(sortFieldIndex); } catch (Exception e) { } return topBottomNSortField; }
[Visual Basic] Private Function GetTopBottomNSortField _ (ByVal sortFieldIndex As Integer) As TopBottomNSortField Dim topBottomNSortField As TopBottomNSortField If TypeOf _ (Report.DataDefinition.SortFields.Item(sortFieldIndex)) _ Is TopBottomNSortField Then topBottomNSortField = _ Report.DataDefinition.SortFields.Item(sortFieldIndex) GetTopBottomNSortField = topBottomNSortField Else : GetTopBottomNSortField = Nothing End If End Function
[C#] private TopBottomNSortField GetTopBottomNSortField (int sortFieldIndex) { TopBottomNSortField topBottomNSortField; topBottomNSortField = Report.DataDefinition.SortFields[sortFieldIndex] as TopBottomNSortField; if (topBottomNSortField != null) return topBottomNSortField; else return null; }
要求
命名空间 CrystalDecisions.CrystalReports.Engine
程序集 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
请参见
TopBottomNSortField 成员 | CrystalDecisions.CrystalReports.Engine 命名空间
©2005 Business Objects SA 保留所有权利。
Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |