Freigeben über


DiscreteProperties-Klasse

Discrete Grouping Properties.When the object is serialized out as xml, its qualified name is x:discretePr.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.DiscreteProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(FieldItem))> _
Public Class DiscreteProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As DiscreteProperties
[ChildElementInfoAttribute(typeof(FieldItem))]
public class DiscreteProperties : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • FieldItem <x:x>

[ISO/IEC 29500-1 1. Ausgabe]

18.10.1.26 discretePr (Discrete Grouping Properties)

Represents the collection of discrete grouping properties for a field group.

[Example:

…
<fieldGroup par="6" base="0">
<rangePr groupBy="months" startDate="2002-01-01T00:00:00"
endDate="2006-05-06T00:00:00"/>
    <groupItems count="14">
<s v="&lt;1/1/2002"/>
<s v="Jan"/>
<s v="Feb"/>
<s v="Mar"/>
<s v="Apr"/>
      <s v="May"/>
<s v="Jun"/>
<s v="Jul"/>
<s v="Aug"/>
<s v="Sep"/>
      <s v="Oct"/>
<s v="Nov"/>
<s v="Dec"/>
<s v="&gt;5/6/2006"/>
</groupItems>
</fieldGroup>
</cacheField>
<cacheField name="Name" numFmtId="0">
<sharedItems count="4">
<s v="Joe"/>
<s v="John"/>
<s v="Bob"/>
<s v="Robert"/>
</sharedItems>
<fieldGroup par="4"/>
</cacheField>
<cacheField name="ProductID" numFmtId="0">
<sharedItems containsSemiMixedTypes="0" containsString="0" containsNumber="1"
containsInteger="1" minValue="1" maxValue="4" count="4">
<n v="1"/>
<n v="2"/>
<n v="3"/>
<n v="4"/>
</sharedItems>
  <fieldGroup base="2">
<rangePr startNum="1" endNum="4" groupInterval="2"/>
<groupItems count="4">
<s v="&lt;1"/>
<s v="1-2"/>
<s v="3-4"/>
<s v="&gt;5"/>
</groupItems>
</fieldGroup>
</cacheField>

end example]

Parent Elements

fieldGroup (§18.10.1.30)

Child Elements

Subclause

x (Shared Items Index)

§18.10.1.97

Attributes

Description

count (Mapping Index Count)

Specifies the number of mapping indexes for this grouped field.

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

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

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

DiscreteProperties-Member

DocumentFormat.OpenXml.Spreadsheet-Namespace