Share via


Boolean 枚举

定义

定义布尔枚举。

public enum Boolean
[DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2013)]
public enum Boolean
public readonly struct Boolean : DocumentFormat.OpenXml.IEnumValue, DocumentFormat.OpenXml.IEnumValueFactory<DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.Boolean>, IEquatable<DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.Boolean>
type Boolean = 
[<DocumentFormat.OpenXml.OfficeAvailability(DocumentFormat.OpenXml.FileFormatVersions.Office2013)>]
type Boolean = 
type Boolean = struct
    interface IEnumValue
    interface IEnumValueFactory<Boolean>
Public Enum Boolean
Public Structure Boolean
Implements IEnumValue, IEnumValueFactory(Of Boolean), IEquatable(Of Boolean)
继承
Boolean
继承
Boolean
属性

字段

Boolean(String)

创建新的布尔枚举实例

Equals(Object)
Equals(Boolean)
False 0

假。

当项序列化为 xml 时,其值为“false”。

False

假。

当项序列化为 xml 时,其值为“false”。

GetHashCode()
Ninch 2

ninch。

当项序列化为 xml 时,其值为“ninch”。

Ninch

ninch。

当项序列化为 xml 时,其值为“ninch”。

Equality(Boolean, Boolean)
Inequality(Boolean, Boolean)
ToString()
True 1

真。

当项序列化为 xml 时,其值为“true”。

True

真。

当项序列化为 xml 时,其值为“true”。

IEnumValue.IsValid
IEnumValue.Value
IEnumValue.Version
IEnumValueFactory<Boolean>.Create(String)

适用于