Variant クラス

定義

バリアント型 (Variant) の値を使用します。

このクラスは、Office 2007 以降で使用できます。

オブジェクトを xml としてシリアル化されるときに、修飾名は vt:variant です。

[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))]
[DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2007)]
[DocumentFormat.OpenXml.SchemaAttr(5, "variant")]
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
[DocumentFormat.OpenXml.SchemaAttr(5, "variant")]
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
[DocumentFormat.OpenXml.SchemaAttr("vt:variant")]
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
[DocumentFormat.OpenXml.SchemaAttr("vt:variant")]
public class Variant : DocumentFormat.OpenXml.TypedOpenXmlCompositeElement
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))]
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))]
[DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))]
[DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2007)]
public class Variant : DocumentFormat.OpenXml.OpenXmlCompositeElement
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))>]
[<DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2007)>]
[<DocumentFormat.OpenXml.SchemaAttr(5, "variant")>]
type Variant = class
    inherit OpenXmlCompositeElement
type Variant = class
    inherit OpenXmlCompositeElement
[<DocumentFormat.OpenXml.SchemaAttr(5, "variant")>]
type Variant = class
    inherit OpenXmlCompositeElement
[<DocumentFormat.OpenXml.SchemaAttr("vt:variant")>]
type Variant = class
    inherit OpenXmlCompositeElement
[<DocumentFormat.OpenXml.SchemaAttr("vt:variant")>]
type Variant = class
    inherit TypedOpenXmlCompositeElement
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))>]
type Variant = class
    inherit OpenXmlCompositeElement
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.Variant))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVector))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTArray))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOBlob))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTEmpty))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTNull))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedByte))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedShort))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt32))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInt64))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTUnsignedInteger))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFloat))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDouble))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDecimal))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTLPWSTR))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBString))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTDate))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTFileTime))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTBool))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTCurrency))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTError))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTOStorage))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTVStreamData))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClassId))>]
[<DocumentFormat.OpenXml.ChildElementInfo(typeof(DocumentFormat.OpenXml.VariantTypes.VTClipboardData))>]
[<DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2007)>]
type Variant = class
    inherit OpenXmlCompositeElement
Public Class Variant
Inherits OpenXmlCompositeElement
Public Class Variant
Inherits TypedOpenXmlCompositeElement
継承
継承
属性

注釈

[ISO/IEC 29500-1 1st Edition]

variant (Variant)

この要素には、任意のバリアント型の子要素を 1 つだけ含めることができます。 この要素は、ベクターまたは配列バリアント型の子要素としてのみ有効です。

[: バリアント型のベクター:

<vt:vector baseType="variant">  
  <vt:variant>  
    <vt:i4>12</vt:i4>  
  </vt:variant>  
  <vt:variant>  
    <vt:lpstr>WorkSheets</vt:lpstr>  
  </vt:variant>  
</vt:vector>  

例終わり]

親の要素
array (§22.4.2.1);variant (§22.4.2.32);vector (§22.4.2.33)
子要素 Subclause
array (Array) §22.4.2.1
BLOB (バイナリ BLOB) §22.4.2.2
bool (Boolean) §22.4.2.3
bstr (Basic String) §22.4.2.4
clsid (クラス ID) §22.4.2.5
cy (通貨) §22.4.2.6
date (日付と時刻) §22.4.2.7
decimal (Decimal) §22.4.2.8
empty (Empty) §22.4.2.9
error (エラー 状態コード) §22.4.2.10
filetime (ファイル時刻) §22.4.2.11
i1 (1 バイト符号付き整数) §22.4.2.12
i2 (2 バイト符号付き整数) §22.4.2.13
i4 (4 バイト符号付き整数) §22.4.2.14
i8 (8 バイト符号付き整数) §22.4.2.15
int (Integer) §22.4.2.16
lpstr (LPSTR) §22.4.2.17
lpwstr (LPWSTR) §22.4.2.18
null (Null) §22.4.2.19
oblob (バイナリ BLOB オブジェクト) §22.4.2.20
ostorage (バイナリ ストレージ オブジェクト) §22.4.2.21
ostream (バイナリ ストリーム オブジェクト) §22.4.2.22
r4 (4 バイト実数) §22.4.2.23
r8 (8 バイト実数) §22.4.2.24
storage (Binary Storage) §22.4.2.25
stream (Binary Stream) §22.4.2.26
ui1 (1 バイト符号なし整数) §22.4.2.27
ui2 (2 バイト符号なし整数) §22.4.2.28
ui4 (4 バイト符号なし整数) §22.4.2.29
ui8 (8 バイト符号なし整数) §22.4.2.30
uint (Unsigned Integer) §22.4.2.31
variant (Variant) §22.4.2.32
vector (Vector) §22.4.2.33
vstream (バイナリ バージョン管理ストリーム) §22.4.2.34

[: この要素のコンテンツ モデル (CT_Variant) の W3C XML スキーマ定義は§A.6.4 にあります。 メモの終了]

ISO/IEC29500: 2008。

コンストラクター

Variant()

Variant クラスの新しいインスタンスを初期化します。

Variant(IEnumerable<OpenXmlElement>)

指定した子要素を使用して Variant クラスの新しいインスタンスを初期化します。

Variant(OpenXmlElement[])

指定した子要素を使用して Variant クラスの新しいインスタンスを初期化します。

Variant(String)

外部 XML から Variant クラスの新しいインスタンスを初期化します。

プロパティ

ChildElements

現在の要素のすべての子ノードを取得します。

(継承元 OpenXmlElement)
ExtendedAttributes

現在の要素のすべての拡張属性 (スキーマで定義されていない属性) を取得します。

(継承元 OpenXmlElement)
Features

現在の要素の を IFeatureCollection 取得します。 この機能コレクションは読み取り専用ですが、使用可能な場合は親パーツとパッケージから機能を継承します。

(継承元 OpenXmlElement)
FirstChild

現在の OpenXmlElement 要素の最初の子を取得します。

(継承元 OpenXmlCompositeElement)
HasAttributes

現在の要素に属性があるかどうかを示す値を取得します。

(継承元 OpenXmlElement)
HasChildren

現在の要素に子要素があるかどうかを示す値を取得します。

(継承元 OpenXmlCompositeElement)
InnerText

現在のノードとそのすべての子の連結値を取得または設定します。

(継承元 OpenXmlCompositeElement)
InnerVariant

バリアント型 (Variant) の値を使用します。

スキーマ内の次の要素タグを表します: vt:variant。

InnerXml

現在のノードの子ノードのみを表すマークアップを取得または設定します。

(継承元 OpenXmlCompositeElement)
LastChild

現在の OpenXmlElement 要素の最後の子を取得します。 このような OpenXmlElement 要素がない場合は、null (Visual Basic では Nothing) を返します。

(継承元 OpenXmlCompositeElement)
LocalName

バリアント型 (Variant) の値を使用します。

このクラスは、Office 2007 以降で使用できます。

オブジェクトを xml としてシリアル化されるときに、修飾名は vt:variant です。

LocalName

現在の要素のローカル名を取得します。

(継承元 OpenXmlElement)
MCAttributes

マークアップ互換性属性を取得または設定します。 現在の要素に対してマークアップ互換性属性が定義されていない場合は null を返します。

(継承元 OpenXmlElement)
NamespaceDeclarations

現在の要素で定義されているすべての名前空間宣言を取得します。 名前空間宣言がない場合は、空の列挙子を返します。

(継承元 OpenXmlElement)
NamespaceUri

現在の要素の名前空間 URI を取得します。

(継承元 OpenXmlElement)
OpenXmlElementContext

現在の要素の OpenXmlElementContext を取得します。

(継承元 OpenXmlElement)
OuterXml

現在の要素とそのすべての子要素を表すマークアップを取得します。

(継承元 OpenXmlElement)
Parent

現在の要素の親要素を取得します。

(継承元 OpenXmlElement)
Prefix

現在の要素の名前空間プレフィックスを取得します。

(継承元 OpenXmlElement)
VTArray

配列。

スキーマの vt:array という要素タグを表します。

VTBlob

バイナリ BLOB。

スキーマ内の次の要素タグ vt:blob を表します。

VTBool

ブール。

スキーマ内の次の要素タグを表します: vt:bool。

VTBString

Basic String。

スキーマ内の次の要素タグを表します: vt:bstr。

VTByte

1 バイト符号付き整数。

スキーマ内の次の要素タグ vt:i1 を表します。

VTClassId

クラス ID。

スキーマ内の次の要素タグを表します: vt:clsid。

VTClipboardData

クリップボード データ。

スキーマ内の次の要素タグ vt:cf を表します。

VTCurrency

通貨

スキーマ内の要素タグ vt:cy を表します。

VTDate

日付と時刻。

スキーマ内の次の要素タグ vt:date を表します。

VTDecimal

小数点型

スキーマの vt:decimal 要素タグを表します。

VTDouble

8 バイト実数。

スキーマ内の要素タグ vt:r8 を表します。

VTEmpty

空。

スキーマ内の次の要素タグ vt:empty を表します。

VTError

エラー状態コード。

スキーマ内の次の要素タグ vt:error を表します。

VTFileTime

ファイル時刻。

スキーマ内の次の要素タグ vt:filetime を表します。

VTFloat

4 バイト実数。

スキーマ内の次の要素タグ vt:r4 を表します。

VTInt32

4 バイト符号付き整数。

スキーマ内の次の要素タグ vt:i4 を表します。

VTInt64

8 バイト符号付き整数。

スキーマ内の次の要素タグ vt:i8 を表します。

VTInteger

整数型

スキーマの vt:int という要素タグを表します。

VTLPSTR

Lpstr。

スキーマ内の次の要素タグを表します: vt:lpstr。

VTLPWSTR

Lpwstr。

スキーマの vt:lpwstr 要素タグを表します。

VTNull

Null。

スキーマ内の次の要素タグ vt:null を表します。

VTOBlob

バイナリ BLOB オブジェクト。

スキーマ内の次の要素タグを表します: vt:oblob。

VTOStorage

バイナリ ストレージ オブジェクト。

スキーマ内の要素タグ vt:ostorage を表します。

VTOStreamData

バイナリ ストリーム オブジェクト。

スキーマの vt:ostream 要素タグを表します。

VTShort

2 バイト符号付き整数。

スキーマ内の次の要素タグ vt:i2 を表します。

VTStorage

バイナリ ストレージ。

スキーマ内の次の要素タグ vt:storage を表します。

VTStreamData

バイナリ ストリーム。

スキーマ内の次の要素タグ vt:stream を表します。

VTUnsignedByte

1 バイト符号なし整数。

スキーマの要素タグ vt:ui1 を表します。

VTUnsignedInt32

4 バイト符号なし整数。

スキーマ内の要素タグ vt:ui4 を表します。

VTUnsignedInt64

8 バイト符号なし整数。

スキーマ内の次の要素タグ vt:ui8 を表します。

VTUnsignedInteger

符号なし整数。

スキーマ内の次の要素タグを表します: vt:uint。

VTUnsignedShort

2 バイト符号なし整数。

スキーマの要素タグ vt:ui2 を表します。

VTVector

ベクトル。

スキーマ内の要素タグ vt:vector を表します。

VTVStreamData

バイナリ バージョン管理ストリーム。

スキーマ内の要素タグ vt:vstream を表します。

XmlQualifiedName

現在の要素の修飾名を取得します。

(継承元 OpenXmlElement)
XName

現在の要素の修飾名を取得します。

(継承元 OpenXmlElement)

メソッド

AddAnnotation(Object)

現在の OpenXmlElement 要素の注釈の一覧にオブジェクトを追加します。

(継承元 OpenXmlElement)
AddChild(OpenXmlElement, Boolean)

指定した要素が既知の子である場合は、 要素に追加します。 これにより、 要素がスキーマに従って正しい場所に追加されます。

(継承元 OpenXmlCompositeElement)
AddNamespaceDeclaration(String, String)

現在のノードに名前空間宣言を追加します。

(継承元 OpenXmlElement)
Ancestors()

現在の要素のすべての先祖を列挙します。

(継承元 OpenXmlElement)
Ancestors<T>()

指定した型を持つ現在の要素の先祖のみを列挙します。

(継承元 OpenXmlElement)
Annotation(Type)

現在の OpenXmlElement 要素から、指定した型の最初の注釈オブジェクトを取得します。

(継承元 OpenXmlElement)
Annotation<T>()

現在の OpenXmlElement 要素から、指定した型の最初の注釈オブジェクトを取得します。

(継承元 OpenXmlElement)
Annotations(Type)

現在の OpenXmlElement 要素の指定した型を持つ注釈のコレクションを取得します。

(継承元 OpenXmlElement)
Annotations<T>()

現在の OpenXmlElement 要素の指定した型を持つ注釈のコレクションを取得します。

(継承元 OpenXmlElement)
Append(IEnumerable<OpenXmlElement>)

要素のリストから現在の要素の子要素のリストの末尾に各要素を追加します。

(継承元 OpenXmlElement)
Append(OpenXmlElement[])

要素の配列から、現在の要素の子要素のリストの末尾に各要素を追加します。

(継承元 OpenXmlElement)
AppendChild<T>(T)

現在の要素の子ノードのリストの末尾に、指定した要素を追加します。

(継承元 OpenXmlCompositeElement)
ClearAllAttributes()

既知の属性と拡張属性の両方を含むすべての属性をクリアします。

(継承元 OpenXmlElement)
Clone()

現在のノードの複製を作成します。

(継承元 OpenXmlElement)
CloneNode(Boolean)

このノードの複製を作成します。

Descendants()

現在の要素のすべての子孫を列挙します。

(継承元 OpenXmlElement)
Descendants<T>()

T 型のすべての現在の要素の子孫を列挙します。

(継承元 OpenXmlElement)
Elements()

現在の要素のすべての子を列挙します。

(継承元 OpenXmlElement)
Elements<T>()

指定した型を持つ現在の要素の子のみを列挙します。

(継承元 OpenXmlElement)
ElementsAfter()

現在の要素に続き、現在の要素と同じ親を持つすべての兄弟要素を列挙します。

(継承元 OpenXmlElement)
ElementsBefore()

現在の要素の前にあり、現在の要素と同じ親を持つすべての兄弟要素を列挙します。

(継承元 OpenXmlElement)
GetAttribute(String, String)

指定したタグ名と名前空間 URI を持つ Open XML 属性を取得します。

(継承元 OpenXmlElement)
GetAttributes()

すべての属性のコピーを含むリストを取得します。

(継承元 OpenXmlElement)
GetEnumerator()

子コレクションを反復処理する列挙子を返します。

(継承元 OpenXmlElement)
GetFirstChild<T>()

T 型の最初の子要素を検索します。

(継承元 OpenXmlElement)
InsertAfter<T>(T, OpenXmlElement)

指定した参照要素の直後に、指定した要素を挿入します。

(継承元 OpenXmlCompositeElement)
InsertAfterSelf<T>(T)

現在の要素の直後に、指定した要素を挿入します。

(継承元 OpenXmlElement)
InsertAt<T>(T, Int32)

現在の要素の子の指定したインデックス位置に、指定した要素を挿入します。

(継承元 OpenXmlCompositeElement)
InsertBefore<T>(T, OpenXmlElement)

指定した参照要素の直前に、指定した要素を挿入します。

(継承元 OpenXmlCompositeElement)
InsertBeforeSelf<T>(T)

現在の要素の直前に、指定した要素を挿入します。

(継承元 OpenXmlElement)
IsAfter(OpenXmlElement)

指定した要素の後に現在の要素がドキュメントの順序で表示されるかどうかを判断します。

(継承元 OpenXmlElement)
IsBefore(OpenXmlElement)

指定した要素の前に現在の要素がドキュメントの順序で表示されるかどうかを判断します。

(継承元 OpenXmlElement)
LookupNamespace(String)

現在のノードのコンテキストの名前空間プレフィックスを解決します。

(継承元 OpenXmlElement)
LookupPrefix(String)

現在の要素スコープ内の名前空間 URI の対応するプレフィックスを検索します。

(継承元 OpenXmlElement)
NextSibling()

現在の OpenXmlElement 要素の直後にある OpenXmlElement 要素を取得します。 次の OpenXmlElement 要素がない場合は null (Visual Basic では Nothing) を返します。

(継承元 OpenXmlElement)
NextSibling<T>()

現在の OpenXmlElement 要素に続く指定した型を持つ OpenXmlElement 要素を取得します。 次の OpenXmlElement がない場合は、null (Visual Basic では Nothing) を返します。

(継承元 OpenXmlElement)
PrependChild<T>(T)

現在の要素の子ノードのリストの先頭に、指定した要素を挿入します。

(継承元 OpenXmlCompositeElement)
PreviousSibling()

現在の OpenXmlElement 要素のすぐ前にある OpenXmlElement 要素を取得します。 前に OpenXmlElement 要素がない場合は、null (Visual Basic では Nothing) を返します。

(継承元 OpenXmlElement)
PreviousSibling<T>()

現在の OpenXmlElement の前に指定された型を持つ OpenXmlElement 要素を取得します。 前に OpenXmlElement 要素がない場合は null (Visual Basic では Nothing) を返します。

(継承元 OpenXmlElement)
Remove()

現在の要素を親から削除します。

(継承元 OpenXmlElement)
RemoveAllChildren()

現在の要素のすべての子要素を削除します。

(継承元 OpenXmlCompositeElement)
RemoveAllChildren<T>()

T 型の現在の要素の子要素をすべて削除します。

(継承元 OpenXmlElement)
RemoveAnnotations(Type)

指定した型の注釈を現在の OpenXmlElement 要素から削除します。

(継承元 OpenXmlElement)
RemoveAnnotations<T>()

指定した型の注釈を現在の OpenXmlElement 要素から削除します。

(継承元 OpenXmlElement)
RemoveAttribute(String, String)

現在の要素から 属性を削除します。

(継承元 OpenXmlElement)
RemoveChild<T>(T)

指定した子要素を削除します。

(継承元 OpenXmlCompositeElement)
RemoveNamespaceDeclaration(String)

指定したプレフィックスの名前空間宣言を削除します。 プレフィックスがない場合は、何も削除しません。

(継承元 OpenXmlElement)
ReplaceChild<T>(OpenXmlElement, T)

現在の要素の子要素の 1 つを別の OpenXmlElement 要素に置き換えます。

(継承元 OpenXmlCompositeElement)
SetAttribute(OpenXmlAttribute)

指定した要素に属性を設定します。 属性が既知の属性の場合、属性の値が設定されます。 属性が拡張属性の場合は、拡張属性リストに 'openxmlAttribute' が追加されます。

(継承元 OpenXmlElement)
SetAttributes(IEnumerable<OpenXmlAttribute>)

要素に複数の属性を設定します。 属性が既知の属性の場合、属性の値が設定されます。 属性が拡張属性の場合は、拡張属性リストに 'openxmlAttribute' が追加されます。

(継承元 OpenXmlElement)
WriteTo(XmlWriter)

現在のノードを指定した XmlWriter に保存します。

(継承元 OpenXmlElement)

明示的なインターフェイスの実装

IEnumerable.GetEnumerator()

バリアント型 (Variant) の値を使用します。

このクラスは、Office 2007 以降で使用できます。

オブジェクトを xml としてシリアル化されるときに、修飾名は vt:variant です。

(継承元 OpenXmlElement)
IEnumerable<OpenXmlElement>.GetEnumerator()

子コレクションを反復処理する列挙子を返します。

(継承元 OpenXmlElement)

適用対象