Sets or updates the heading filter.
Syntax
Parameters
- levelOrAttributeUniqueName
- The affected attribute or hierarchy level.
- constraint
- The heading filter's constraints.
Return Value
A reference to this instance after the operation has completed.
Example
The following code demonstrates how to create the heading filter.
| C# | Copy Code |
|---|
using (ILayoutActions la = pivotView.BeginLayoutUpdate("Set Heading Filter"))
{
string attribute = "[Order Date].[Date]";
// add some attribute to the Column
la.AppendField(attribute, ShelfKind.ColumnShelf)
// set heading filter that includes authors with names from 'a*' to 'k*'
.SetFilter(attribute, Heading.Between("1", "5"))
.Commit();
} |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also