Class FilterItemsCollection
Class that holds the collection of objects that are filtered.
Inheritance
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class FilterItemsCollection : List<FilterItemElement>
Constructors
FilterItemsCollection()
Initializes a new instance of the FilterItemsCollection class.
Declaration
public FilterItemsCollection()
Properties
AllFilterItem
Gets or sets the property with all the filter items.
Declaration
public FilterItemElement AllFilterItem { get; set; }
Property Value
Type |
---|
FilterItemElement |
AllowRunTimeGroupByField
Gets or sets the value to enable/disable grouping for the filter item. Default value is true.
Declaration
public bool AllowRunTimeGroupByField { get; set; }
Property Value
Type |
---|
System.Boolean |
Comparer
Gets or sets the comparer of all PivotFields in the Pivot control.
Declaration
public IComparer Comparer { get; set; }
Property Value
Type |
---|
System.Collections.IComparer |
DisplayHeader
Gets or sets the header value for the PivotItem.
Declaration
public string DisplayHeader { get; set; }
Property Value
Type |
---|
System.String |
FieldCaption
Gets or sets the caption value for the PivotItem.
Declaration
public string FieldCaption { get; set; }
Property Value
Type |
---|
System.String |
FilteredValues
Gets or sets the filtered values.
Declaration
public List<string> FilteredValues { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<System.String> |
FilterProperty
Gets or sets the filter property.
Declaration
public PropertyDescriptor FilterProperty { get; set; }
Property Value
Type |
---|
System.ComponentModel.PropertyDescriptor |
Format
Gets or sets the format for the PivotItem.
Declaration
public string Format { get; set; }
Property Value
Type |
---|
System.String |
Name
Gets or sets the content for the name property.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
ShowSubTotal
Gets or sets the value to show/hide sub-totals for the PivotItem. Default value is true.
Declaration
public bool ShowSubTotal { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
AcceptChanges()
Accept the changes in the filter items collection.
Declaration
public void AcceptChanges()
AddIfUnique(FilterItemElement)
Returns the respective location to add the filter item.
Declaration
public int AddIfUnique(FilterItemElement filterItemElement)
Parameters
Type | Name | Description |
---|---|---|
FilterItemElement | filterItemElement | Filter item. |
Returns
Type | Description |
---|---|
System.Int32 | Location to add the filter item. |
AddWireEvent(FilterItemElement)
Add filter item in the collection.
Declaration
public void AddWireEvent(FilterItemElement element)
Parameters
Type | Name | Description |
---|---|---|
FilterItemElement | element | Filter item. |
GetFilterExpression(Boolean)
To get the filter expression from IEnumerable source.
Declaration
public string GetFilterExpression(bool IEnumerableSource)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | IEnumerableSource |
Returns
Type |
---|
System.String |
GetFilterExpression(Boolean, FilterItemsCollection, String)
Returns the filter expression for the filter items collection from IEnumerable source.
Declaration
public string GetFilterExpression(bool IEnumerableSource, FilterItemsCollection filterItemsCollection, string format)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | IEnumerableSource | |
FilterItemsCollection | filterItemsCollection | |
System.String | format |
Returns
Type |
---|
System.String |
GetFilterExpressionForDataView()
To get the filter expression for DataView source.
Declaration
public string GetFilterExpressionForDataView()
Returns
Type | Description |
---|---|
System.String | Filter expression. |
GetFilterItem()
Returns key of the filter item, if the filter items are selected else returns empty string.
Declaration
public string GetFilterItem()
Returns
Type |
---|
System.String |
RejectChanges()
Rejects the changes in filter items collection.
Declaration
public void RejectChanges()
SetName(String)
Method used to set the name of the filter item.
Declaration
public void SetName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the filter item. |