OnOffValue.FromBoolean Method
Returns a new OnOffValue object created from Boolean.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Function FromBoolean ( _
value As Boolean _
) As OnOffValue
'Usage
Dim value As Boolean
Dim returnValue As OnOffValue
returnValue = OnOffValue.FromBoolean(value)
public static OnOffValue FromBoolean(
bool value
)
Parameters
- value
Type: System.Boolean
A Boolean value to create a new OnOffValue object from.
Return Value
Type: DocumentFormat.OpenXml.OnOffValue
A OnOffValue that corresponds to the value parameter.