Provides information about the
PivotView control layout.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Interface ILayoutState |
| C# | |
|---|
public interface ILayoutState |
Remarks
Example
The following sample demonstrates how to find and process all measures in the layout.
| C# | Copy Code |
|---|
// get the state of the layout
ILayoutState state = pivotView.GetLayoutState();
foreach (IShelf items in state.Shelves)
{
foreach (ILayoutItem item in items)
{
// checks that the current item is a measure
if (item.SchemaItem is Measure)
{
// performs an action on the measure
ProcessMeasure(item.UniqueName);
}
}
} |
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