OnOffValue.ToBoolean Method
Returns the internal Boolean representation of a OnOffValue object.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Function ToBoolean ( _
xmlAttribute As OnOffValue _
) As Boolean
'Usage
Dim xmlAttribute As OnOffValue
Dim returnValue As Boolean
returnValue = OnOffValue.ToBoolean(xmlAttribute)
public static bool ToBoolean(
OnOffValue xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.OnOffValue
A OnOffValue object to retrieve an internal Boolean representation.
Return Value
Type: System.Boolean
A Boolean value that represents a OnOffValue object.