Compartir a través de


Top10 Class

Top 10.When the object is serialized out as xml, its qualified name is x:top10.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.Top10

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class Top10 _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As Top10
public class Top10 : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

18.3.2.10 top10 (Top 10)

This element specifies the top N (percent or number of items) to filter by.

[Example:This example filters the first column by the top 10 percent of the values in that column. For all cells in the column whose value falls outside the top 10 percent of the value in that column, the rows corresponding to those cells are hidden from the view. In this example, there are 6 cells in the range, containing 1, 2, 3, 4, 5, 6 respectively.

<filterColumn colId="0">
<top10 percent="1" val="5" filterVal="6"/>
</filterColumn

end example]

Parent Elements

filterColumn (§18.3.2.7)

Attributes

Description

filterVal (Filter Value)

The actual cell value in the range which is used to perform the comparison for this filter.

The possible values for this attribute are defined by the W3C XML Schema double datatype.

percent (Filter by Percent)

Flag indicating whether or not to filter by percent value of the column. A false value filters by number of items.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

top (Top)

Flag indicating whether or not to filter by top order. A false value filters by bottom order.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

val (Top or Bottom Value)

Top or bottom value to use as the filter criteria. [Example: "Filter by Top 10 Percent" or "Filter by Top 5 Items". end example]

The possible values for this attribute are defined by the W3C XML Schema double datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_Top10) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Top10 Members

DocumentFormat.OpenXml.Spreadsheet Namespace