Share via


TrueFalseValue Class

Definition

Represents the data type for attributes that have enum values that are Boolean values that represent 't' or 'f', or 'true' or 'false'.

public class TrueFalseValue : DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<bool>
public class TrueFalseValue : DocumentFormat.OpenXml.OpenXmlSimpleType
type TrueFalseValue = class
    inherit OpenXmlComparableSimpleValue<bool>
type TrueFalseValue = class
    inherit OpenXmlSimpleType
Public Class TrueFalseValue
Inherits OpenXmlComparableSimpleValue(Of Boolean)
Public Class TrueFalseValue
Inherits OpenXmlSimpleType
Inheritance
Inheritance
TrueFalseValue

Constructors

TrueFalseValue()

Initializes a new instance of TrueFalseValue class.

TrueFalseValue(Boolean)

Initializes a new instance of TrueFalseValue class using the supplied Boolean value.

TrueFalseValue(TrueFalseValue)

Initializes a new instance of the TrueFalseValue class using the supplied TrueFalseValue class.

Properties

HasValue
HasValue

Gets a value that indicates whether the underneath text value is a valid value.

(Inherited from OpenXmlSimpleValue<T>)
InnerText
InnerText

Gets or sets the inner XML text.

(Inherited from OpenXmlSimpleValue<T>)
TextValue
Obsolete.

Gets or sets the internal raw text value. DO NOT use this property. Only for OpenXmlSimpleType.cs internal use.

(Inherited from OpenXmlSimpleType)
Value
Value

Gets or sets the value of the simple value.

(Inherited from OpenXmlSimpleValue<T>)

Methods

Clone()

Creates a duplicate of the current value.

(Inherited from OpenXmlSimpleType)
CompareTo(Object) (Inherited from OpenXmlComparableSimpleValue<T>)
CompareTo(OpenXmlComparableSimpleValue<T>) (Inherited from OpenXmlComparableSimpleValue<T>)
CompareTo(T) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(Object) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(OpenXmlComparableSimpleValue<T>) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(T) (Inherited from OpenXmlComparableSimpleValue<T>)
FromBoolean(Boolean)

Returns a new TrueFalseValue object that was created from a Boolean value.

GetHashCode() (Inherited from OpenXmlComparableSimpleValue<T>)
ToBoolean(TrueFalseValue)

Returns the internal Boolean representation of a TrueFalseValue object.

ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(Boolean to TrueFalseValue)

Implicitly converts a Boolean value to a TrueFalseValue instance.

Implicit(TrueFalseValue to Boolean)

Implicitly converts a TrueFalseValue class to a Boolean value.

Applies to