OnOffValue Members

Include Protected Members
Include Inherited Members

Define OnOffValue ¨C datatype for attributes that have enum values as ¡®true¡¯, ¡®false¡¯, ¡®on¡¯, ¡®off¡¯, ¡®0¡¯, ¡®1¡¯ meaning Boolean true/false.

The OnOffValue type exposes the following members.

Constructors

  Name Description
Public method OnOffValue() Initializes a new instance of OnOffValue.
Public method OnOffValue(Boolean) Initializes a new instance of OnOffValue.
Public method OnOffValue(OnOffValue) Initializes a new instance of OnOffValue.

Top

Properties

  Name Description
Public property HasValue Gets a value indicating whether underneath text value is valid value. (Overrides OpenXmlSimpleType.HasValue.)
Public property InnerText Gets or sets the inner xml text. (Overrides OpenXmlSimpleType.InnerText.)
Protected property TextValue DON'T use this property. Only for OpenXmlSimpleType.cs internal use. The internal raw text value. (Inherited from OpenXmlSimpleType.)
Public property Value Gets or sets the value.

Top

Methods

  Name Description
Public method Clone Creates a duplicate of this value. (Inherited from OpenXmlSimpleType.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromBoolean Returns a new OnOffValue object created from Boolean.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member ToBoolean Returns the internal Boolean representation of a OnOffValue object.
Public method ToString Returns a String that represents the current value. (Inherited from OpenXmlSimpleType.)

Top

Operators

  Name Description
Public operatorStatic member Implicit(Boolean to OnOffValue) Implicitly converts from Boolean.
Public operatorStatic member Implicit(OnOffValue to Boolean) Implicitly converts to Boolean.

Top

See Also

Reference

OnOffValue Class

DocumentFormat.OpenXml Namespace