Udostępnij za pośrednictwem


OnOffValue Class

Definition

Defines an OnOffValue data type for attributes that have enum values that are Boolean values that represent: 'true' or 'false', 'on' or 'off', or '0' or '1'.

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

Constructors

OnOffValue()

Initializes a new instance of OnOffValue class.

OnOffValue(Boolean)

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

OnOffValue(OnOffValue)

Initializes a new instance of OnOffValue class using the supplied OnOffValue 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 OnOffValue object created from a Boolean value.

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

Returns the internal Boolean representation of a OnOffValue object.

ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(Boolean to OnOffValue)

Implicitly converts a Boolean value to an OnOffValue value.

Implicit(OnOffValue to Boolean)

Implicitly converts the specified OnOffValue object to a Boolean value.

Applies to